Session API: Use case-insensitive authentication like in UI
Merge branch 'master' into jastkand/gitlab-ce-fix-api-auth

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

Conflicts:
	CHANGELOG
Merge branch 'jastkand/gitlab-ce-fix-api-auth' into 'master'

Jastkand/gitlab ce fix api auth

Fixes https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/209

See merge request !1232
Merge branch 'master' of github.com:gitlabhq/gitlabhq