Rearranges modules into a more sensible structure.

- Fixed some missed require stubs in messagebuilder.
- Grouped up integration tests.
- Changed test script to run tests recursively.