Cleanup and Add More Tests

This pull request
  - cleans up whitespace for readability
  - refactors a few methods to make the code DRYer
  - adds basic functional tests for resolve, search and export email controllers
    - incorporates this [fix](/team-umlaut/umlaut/pull/5) so that the resolve controller test doesn't complain about malformed HTML
    - cleans up HTML in search and export email views for the same reason
  - adds tests for the SFX and Internet Archive services