Fixed a lot of issues:

- Fixed bug where wueue was executed mistakingly in resource_router
- removed unneccesary js/head.js
- removed various php short tags
- other minor code clean ups