dev
sync with stable-3.6 which has all changes from dev, but in different order, to prevent future conflicts
add sqlite libs to build with
tree-wide: remove out dated author info from source files
implement history id command