separated app.html out

split up the original app.html file into relevant parts, deleted.
remaining functionality to be handled by index.html