Update build system, add license, move tests around
Merge branch 'update-build-system'