Improve error handling in the build.
Merge branch 'master' of github.com:IndigoUnited/dejavu
Huge commit.

- Fix some issues when $locked was true
- Add dejavu.inspect to inspect instances and constructors
- Minor code refactor
- Other minor fixes.