Added real rules for jshint.
Fixed JSHint errors and warnings.
Allow more JavaScript for now.
Enforce better JavaScript syntax.
Merge pull request #145 from longsleep/jshint-fixing

Fixed JSHint errors and warnings.
Expose main App to externalPlugin call.
Added apiversion field to main App (starting with 1.0).
Add support for chat and call in contacts manager.