Moved the main code into a subproject
Refactored and modernized for 1.1.1/1.2 language features
moved HTML+JS UI to a separate project.

This seems to be necessary because IDE can not currently handle mix of
moduels that have different backend targets.