Add submodules mbs and platform.
Ignore generated files.
Remove mercurial files.
Use new platform library API.
Add license file.
Add travis CI build script.