Add well-known JS variables to be ignored

There are some well known global variables that cause JSHint warnings. We should
add them to the list of ignored variables.

* ignore jquery variables
* ignore angular variables
* ignore jasmine variables
* sort the JSHint options
* combine ignored varibales from both configs
* move active_support test dependency into fast_spec_helper

https://trello.com/c/1kUi8THW
Rescue malformed JSON config

Since we cannot parse the repo configuration, return an empty hash, as if the
was no configuration at all.
Upgrade to ruby 2.1.3
Revise setup instructions in README.md

* Set up local environment and clarified instructions in `README.md`
* Centralize on localhost:5000, since that's the default Foreman port
* Clearer GitHub and Stripe instructions

https://trello.com/c/TpFwhtlt/333-replicate-setup-locally-and-update-readme-me
Force UTF-8 encoding on file contents

`Base64.decode64` returns a string with encoding of `ASCII-8BIT`. Some linters
will try to write the file. If a file contains weird characters, an error will
get raised, like:

```
 Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
```

Related error:
https://app.getsentry.com/app20126465herokucom/production/group/33706905/
Fix exemption check

* Check failed when more than one org was added. This change fixes that.
Configure Redis using redis-db defaults

* This commit implements a change suggested by @lunks in
  https://github.com/thoughtbot/hound/issues/444
* Remove Redis configuration in favor of redis-db's default configuration
* Reference: https://github.com/redis/redis-rb#getting-started
* Remove references to `REDISTOGO_URL` environment variable
* Note: Prior to merging and deploying this commit a `REDIS_URL`
  environment variable should be set on Heroku
* https://trello.com/c/AlmhdrFd/399-change-redistogo-url-environment-variable-to-redis-url
Start a FAQ page

* Add a HighVoltage page at `/faq`
* Link to FAQ on landing page
* Add a link to the footer of the landing page
* Override HighVoltage's `PagesController` to skip authentication and be public
* Use double quotes

Minor:
* Move styles for anchor tags from `_base` into the more specific `_header` where it used

https://trello.com/c/h9zfaC9l/386-add-an-faq
Autopaginate GitHub requests

* fix for fetching only 30 teams from the organization
* fetch 100 items per page and iterates to get all the results
Make detection of services team case-insensitive

* Update `GithubApi#find_team` to detect existing services team with
  lowercase name
* Addresses https://github.com/thoughtbot/hound/issues/454
* https://trello.com/c/q9z4wV19/398-activation-fails-when-repo-belongs-to-organization-with-services-lowercase-team
Update repo name when receiving PR payload

This will prevent us from getting out of sync repo names, which causes
an issue when we try to process the PR, since our and GitHub repo names
are mismatched.
Retry jobs that are getting 404 errors (Octokit::NotFound)

We're getting these sporadically and hard-failing on the first.
Instead let's retry them.
Move report logic into a module

The methods defined within a rake task pollute global space. Thus, `format`
was defined on the top level object, and when RuboCop calls its own
`format` function things were blowing up.
Add SECURITY.md document, linked from footer

Move all similar docs to `doc/` directory.
Parse config file according to content

Use a map for StyleGuide to config content type, instead of relying on file
extension.

Fixes an existing bug:
https://app.getsentry.com/app20126465herokucom/production/group/36491968/
Rename "activity" report to "north star" report

Use "North Star" term to match the thoughtbot growth team's terminology
for [the only metric that really matters][only].

[only]: https://medium.com/@joshelman/the-only-metric-that-matters-ab24a585b5ea

> How many people are really using your product?

Identify the interaction that represents the moment users really get value from
your product and identify the threshold for how often that interaction is
appropriate within the context of the product.

For example, Hound's "north star metric" is:

> Repos with builds per week

When Hound reviews a pull request or a new commit to a pull request, it
"builds." This is the "aha moment" when a user is getting value from the
product. We care about this number because most teams relax on the weekends.
Use named pages for Segment, add page titles

* In order to track conversion rate from home page to sign up,
  we need to give the `page()` method a name.
  https://segment.com/docs/integrations/mixpanel/#page
* By re-using `page_title`,
  we can also set up a nicer sitemap
  and improve SEO.
Require `active_support` in fast_spec_helper

This prevents the following error when running the tests.

```
.../activesupport-4.1.5/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError)
   ...
   from .../activesupport-4.1.5/lib/active_support/core_ext.rb:1:in `<top (required)>'
   from .../spec/fast_spec_helper.rb:6:in `require'
```

See also: <https://github.com/rails/rails/issues/14664>.
Refactor RepoActivator

* Move enqueueing of `OrgInvitationJob` into the activator
* Use instance method for activator to cut down on redundant argument-passing
* Sort private methods into order in which they are called
* Use named parameters
* Use `.fetch` for retrieving hash values (raises rather than `nil`s)
* Avoid ternary operators

https://trello.com/c/fABEW1eM/391-don-t-allow-repo-activation-if-repo-is-missing-privacy-or-organization-information
Default to hound's token for the API client

Most of the action happens via HoundCi's github token. Defaulting to
Hound's token makes this process simpler, and makes it easier to see
which actions require the signed-in user's token.