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).
Merge branch 'master' into find_build
Don't error on invalid parameter