reorganized app code.
removed app template from framework folder.