Improve asset building and fix packaging issues.

Adds top level targets for building static assets and fixes permission problems