chromeapp and cmd line

cleaned up my code quite a bit and added cmdline module as well as
chrome app support