Cleanup MySQL database

Addresses changes made to installation guide and config files but never
applied in update process. Relevant changes to installation guide and
config files were made in
gitlabhq@cbb5b00,
gitlabhq@498a4e6,
gitlabhq@c33d5e1,
gitlabhq@485162e#diff-e1059d0fa0437ffad94facff86210603,
gitlabhq@72e2fe2#diff-d1b4ff7de834bae6008dd49550413a6f,
gitlabhq@5163a8f#diff-e1059d0fa0437ffad94facff86210603,
gitlabhq@993af5d#diff-e1059d0fa0437ffad94facff86210603,
&
gitlabhq@d3f5a0c.
simplify schema.rb reset in upgrade guides
Improve dashboard note view and add tests

Update the `#first_line_in_markdown` method so that the first line of
parsed text is displayed more reliably, and the continuation indicators
("...") are displayed in all cases where the note is truncated.

Also add Rspec tests for `EventsHelper#event_note`.
Merge pull request #7742 from bbodenmiller/patch-7

Cleanup MySQL database
Merge pull request #8021 from bbodenmiller/schema.rb

simplify schema.rb reset in upgrade guides
minor updates to mysql cleanup

* take -> make
* correct incorrect details about when pool size was changed
Merge pull request #8020 from mr-vinn/note-trunc-link

Improve event note display in dashboard and project activity views
Merge pull request #8023 from bbodenmiller/patch-4

minor updates to mysql cleanup
Merge pull request #8020 from mr-vinn/note-trunc-link

Improve event note display in dashboard and project activity views
Add refactoring for multiple LDAP server support

These changes are ported from EE to CE. Apply changes for app directory
Merge branch 'feature-oauth-refactoring' into 'master'

Feature oauth refactoring

same MR as gitlab/gitlab-ee!188

See merge request !1169
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Add config changes for mutliple LDAP support (EE only)
Apply configuration changes for Multiple LDAP servers
Admin: user sorting
Merge branch 'sorting-users-in-admin' into 'master'

Sorting users in admin

See merge request !1170
fix exclude wiki regex

the new regex allows importing repositories with repository name ending with wiki but still exclude gitlab wiki repositories
Merge remote-tracking branch 'origin/master' into feature-multiple-ldap-servers

Conflicts:
	app/controllers/omniauth_callbacks_controller.rb
Refactor lib files for multiple LDAP groups
Merge tests to support Multiple LDAP groups