format code. remove deprecated functions in oAuthHelper.
Add JSHint configuration file.
Reject Deferred in Template.