First commit of the actual apps code, it's bad and I know it.  Improvements will come. Its hackery right now. More documentation will follow.