Fix group matching SQL query

The check there is intended for the :members_mods_and_admins level, which is not automatically checked for normal users. Instead, the :everyone level is the one used, which would always fulfill the "alias_level in :levels" check.

This changes the :everyone level to :members_mods_and_admins, which was originally intended.
Change to case-insensitive matching in group @name matching
Support for a `/last` route to go to the last post in a topic.
FIX: Invalid ruby code for universal google analytics
Add secure flag to cookie
Revert "Add secure flag to cookie"
BUGFIX: don't leak out a transaction if fails
REFACTOR: clean up mechanism
BUGFIX: raise on fail
BUGFIX: stop testing on 2.1 it segfaults

As much I love Ruby 2.1 we can not test it till segfaults are fixed
FEATURE: task for global rewrite, used post migration to multisite
better var names
BUGFIX: invited to pm email was using wrong key
BUGFIX: hidden posts not absent from context
Adds JS integration tests for search
Merge pull request #1888 from velesin/search_integration_tests

Adds JS integration tests for search
BUGFIX: JSON requests don't exclude categories from filters
Remove invalid comment.
This was added in 1076aa50a8ffa4f5ab50369807527542a7b87372 when
ember-rails was installed from a revision number. This was changed to
use the latest gem release in ad6705cca759c6b8d40330d24d981190623cdc43
ignore exclude_category from the menu if we are trying to view the category.
Try secure: true again