fix build failure

(https://travis-ci.org/gitlabhq/gitlabhq/builds/3593153)
Show only ≤16 lines of code in a discussion (fix issue #2860).
A little bit of codestyle improvments
System hooks execution moved to System hook service
Method moved to service
Migrations for convertion merge_status added
Database schema updated
State machine added for merge_status field
class.self methods moved to scopes
human_merge_status replaced by human_merge_status_name
We don't need to check .profile now that gitolite is replaced by gitlab-shell
Fix merge state detection
Update sidekiq
Update capybara, poltergeist, spinach, rspec-rails
Add LoginHelpers to feature type
move capybara scenarios to spec/features
improve selectors to pass capybara 2.0
Monkeypatch satellite call for merge request in tests
An Id must be sended to queue
Team features are green now