Updated the simplified copy of daportal.php
Added a helper function to obtain Request objects for the current user
Let engines determine the default MIME type when rendering