Add ability to search in issue description and issue comments

 * edit queries in serach context
 * edit template for result
fix for project creation: group projects don't count towards user's project limit
merge into current master
Update ability to search in issue descriptions and comments
Fixes a problem with 'Issues' filter box, where description of the filter says 'Filter by title or description' but in fact filter only works for title and doesn't work for description
Add autofocus and tabindex.
Add the http(s) command lines in the mails for the new origin when a project was moved in an other namespace.
Limit the width of images in emails

This fixes an issue in Mail.app, where large images would expand outside
of the viewport.
links to issues on main dashboard
Update events helper to also return a URL for notes.

This fixes #304 since it was linking back to the dashboard feed
only as a result of it being given no URL at all for notes.
Update event helper to display target_iid in event title instead of target_id.

The event helper is used extensively within the dashboard atom feed, so by
fixing this, we fixed #303.
Add summaries for notes and merge requests to dashboard feed.

This fixes #305.
Document that we don't want pushed commits to be rebased and give a rationale for many small MR's policy.
Fix for copy paste formatted text
notes count in 1 query for mr and commits
fix link to notes in merge request diff

http://localhost:3000/gitlabhq/gitlab-ci/merge_requests/1/diffs#note_316
scroll in such links doesn't work. It happens because  on page there are 2 elements with id="note_316" in changes and discussion.
Browser takes first for scroll.
This solution works because changes loads without diffs so tag with id="note_316" just one.
Diffs loads with discussions, but in this case diff tag would be first.
It is dirty but working solution.
Remove set of thread variables

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Remove thread vars usage from API notes and mr's

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Replace milestone observer with services

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Send notification emails to the "project", and put people in Cc

This fixes email threading in Mail.app, that doesn't like when a thread
doesn't have stable recipients.

For instance, here is a possible sender-recipient combinations before:

From: A
To: Me
New issue

From: B
To: Me
Reply on new issue

From: A
To: Me
Another reply

Mail.app doesn't see B as a participant to the original email thread,
and decides to break the thread: it will group all messages from A
together, and separately all messages from B.

This commit makes the thread look like this:

From: A
To: gitlab/project
Cc: Me
New issue

From: B
To: gitlab/project
Cc: Me
Reply on new issue

From: A
To: gitlab/project
Cc: Me
Another reply

Mail.app sees a common recipient, and group the thread correctly.