Again with the redirects

/ = welcome page, or => /search if logged in
locked pages => /
Change authorize link to party view page

Something better could be done later.  Fixes assembla-492
Add /api/profile (unlocked)
Merge remote-tracking branch 'remotes/origin/master' into errors
implement /profile and /api/profile; error formatting