clean up.

encapsulated code from app.html and placed it in a new directory for
easy development of app pages.