Moved work package loading out of respond_to block.

Wasn't getting run for xls requests.
Loading work packages except when it's an html request.

Plays nice with the patched respond_to method in the plugin.
Merge pull request #1078 from opf/dev-angular-spec-fixes

Dev angular spec fixes