Some changes required for token access to built files

A few fixes to support overriding serve_docs calls. This will be to add token access to built files.