Fixing as many JSHint and JSCS errors as possible in fieldbook-common.js without risking altering functionality. The use of '==' is too difficult to change right now.

Issue: Clean Up
Reviewer: none