Rework source
Add debug code
Fix static resources lookup paths.
Finish first alpha version.