Backports PR #7435
**Commit 1:**
Current styleguide conventions with modern JS
The existing styleguide was in great need of a rewrite as it did not
reflect the conventions we're using in the codebase or even the best
practices that we follow. In some cases, the guidance it provided was
outright contrary to our current practices.
* Original sha: 13e501bcf9
* Authored by Court Ewing <court@epixa.com> on 2016-06-12T14:03:13Z