Move manifest.webapp into a firefoxos specific directory.
The contents of the platform specific directory in "merges" is merged in to "www" folder when building.
Move compile script out of the www/ folder.
Remove onload inline javascript: firefox marketplace does not allow it.