Changed sudo by su -c

The sudo command needs a tty to run. If you put this file on a CentOS 6, for example, it will not run in the host startup process. Instead, the 'su -c' runs the command apart if it has or not a tty.

I tested this change in a fresh install of gitlab on a CentOS 6.5 with successful.
Also expose username for the /discover endpoint

Fixes #6328
Update merge_request_observer_spec.rb
Add button for toggling inline comments in diff view.

This is useful when there are many comments and they're becoming a distraction when trying to read the diff.
Remove dir prefix and suffix from tests inside dir.
Don't send an email for "mentioned in" notes

Currently, an email is sent every time a mentionable is referenced
by an issue, a commit or a merge request: if I comment "This MR is
related to #5", watchers get one email for the comment, and another
one stating "Issue #5 was mentioned by issue #13".

This is annoying — but the biggest issue is when pushing an existing
branch. Every issue referenced by commit messages in this branch will
get a new mention (which is fine), and dozens of emails will be sent
for all these new mentions (which is not).

This commit fixes the spam by avoiding to send an email when a new
mention is created. In most cases the email notification for the
mentioner is enough.
Use tags to do minor updates of GitLab
Update user_management.md

Believe the intention was to say 'groups' instead of 'projects' here.
Fix registration error info typo
Added description parameter support to Create and Update MR API endpoints (issue-110).
Add .adoc file extension for AsciiDoc

Add .adoc file extension for AsciiDoc as it's a very popular extension to use and the one recommended by the Asciidoctor project.
Added tag_push_events to the web_hooks

* Added a scope to the web_hooks model
* Added extra checkbooks in de hooks overview window
Created a basic Git Tag Push service

This is the first version, and only has the most basic information about
the tag that is created.
Post-receive hook can also fire TagPushService
Added newrev and oldrev to the hook data
Renamed oldrev/newrev to before/after
Added tests of Create and Update MR description.
Better explanation for import url

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Show import notice in callout block

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Added rake task to add limits back in mysql