Code cleanup, fix for embedded player bug
Fix bit setting error
Added support for template UI
Fixed module freeing
Added state view button
Added support for signals