Modify statics managament for easier deployment

The URL prefix for guide statics is now 'static/guide' instead of
'guide/static'. Also, mw-app.js is treated as a generated file.
Add 500 handler