Updates to build system
* off the source build
* packaging
* documentation
* test
* Add debugging output and verify refcounts of lm objects. Need a decent test script for that...* How to report errors in callbacks? We cannot use lua_error, it can be even outside of any lua pcalled environment.* Some additional lua functions?