Wait for a numeric on IRC notifications

Code originally by Nick Markwell (@duckinator), ported to the current
codebase by me. This is a port of the code in travis-ci/travis-core#56.
Remove unnecessary line

If we refer to @numeric_received when it's not initialized, we'll get
nil back, and since we just need a falsey value, that's enough.
Fixed Redis pubsub spec
Merge pull request #253 from Aaron1011/fix_redis

Fixed Redis pubsub spec
Don't use request to check if build is a pull request
Cache matrix_ids

We need to return matrix_ids in the API along with builds data. This
commit starts caching matrix_ids as a postgresql array, which should
help with performance, as we will no longer need to load jobs when
returning builds list.
Adding support for basic auth in webhook URLs

which takes precedence over the custom Authorization header made from
the SHA256 hash of the repo slug + token.
Check for cached_matrix_ids column on after_save callback
Remove updated_at from FindBuilds service

The query to fetch it can take a lot of the time, which a lot of the
time is slower than actually getting a list of builds.
Handle a nil login, return default queue limit.
Use event_type from build, not request
Merge pull request #255 from modcloth/support-basic-auth-in-webhook-urls

Adding support for basic auth in webhook URLs
Add index on builds(id DESC, repository_id, event_type)
Disable ddl transaction for index added concurrently
Get also running repos when fetching member repositories
Include user's created_at in API payload.
Properly sort repositories on the lists

`timeline` scope returns repositories sorted by `last_build_started_at`,
but it also does not return repositories, which are queued. I don't want
to change that for now, but I want repositories with `owner_name` and
`member`  queries to be sorted by the start date of last build (with
queued repositories in the front).
Search for repos by github_id on user sync
Update owner_name and name on repository sync
WIP: New build email.