Renaming spec env for JS instead of JAVASCRIPT
Refactoring access rights

Presently the permissions/access rights questions are a nightmare of
hash-driven detection, keyword checks, etc. The AccessRight class is
my attempt to clean that up.
Narrowing the rescue from responses

I really only want to rescue ones that are registered. The
exceptions_app middleware will capture those in production.
Replacing Doi #save with #save!

The return value of the save was not being checked; this could result
in an unexpected state (i.e. a DOI was registered with the agent,
but the DOI was not persisted in our database; and we wouldn't know
about it. At least with an exception, we have a chance of figuring out
the corrupted data state).
Ignoring rails_best_practice output
Replacing rescue Exception -> Errno::ENOENT
Removing empty helper
Utilizing before_filter to ensure method call
Removing corresponding downloads helper
Replacing tabs with two spaces
Removing trailing whitespace