code style fixes
move code and docs into subdirectories, rename .h to .hh
update build script, require C++11
update README.md, relicense under MIT license terms