Fix reverse lookup in corp module

Look up serve_doc by name, the decorator seems to cause problems here.
Fix test suite script
Move token logic out, make serve_docs an wrapper for overriding
Actually fix test runner
One more time.
Reference auth.User by name, not class
Merge pull request #914 from rtfd/token-access-corp

Some changes required for token access to built files