Apphook fixes

[x] move application_urls to page
[ ] namespaces in apphooks
[ ] errors if there is no app_name defined
[ ] reverse error page