Replaced deprecated error.add_to_base to display error
Added javascript function to handle marking state changes
Updated view rjs files to call js function created to handle state changes
Removed redundant error clearing line in javascript code
Simplified changes and updated js fix to avoid reloading client browser upon clearing error
Code clean up.
Merge pull request #1387 from beepted/issue-1032

Closes 1032 - Must refresh page to be able to release result if there was an attempt to mark incomplete result as "complete".