Final sprint9 (0.0.9) branch.

Merge branch 'devel' from 'sprint9' to 'master'
Broken authentication files
Transitional update, 75% complete
in the middle of fixing user service
SSPI seems to be working

Punched some ugly code through to make it work. Not completely pleased with lack of refactoring I was able to do in the user service file.

configurations for sspi are found in the config/settings/auth.js file.
All site actions now route through MainController, which allows global policies to be put in place. The SSPI policy is one of these.
Fix whitespace: TABS > SPACES

Whitespace only commit
Minor commits to sspi policy
Merge the latest sprint10 changes

Merge branch 'sprint10' into sprint10-feature-sspi-merge2
Fix conflicts in auth merge

Merge branch 'sprint10' into sprint10-feature-sspi-merge2

Conflicts:
	api/controllers/AuthController.js
	config/settings/auth.ex.js
Remove errant main/test route
Disable SSPI by default
Comment why we're passing in config

We need it for other services to easily use
Merge terms & conditions config

Merge branch 'sprint10' into sprint10-feature-sspi-merge2
Release 0.0.10 (sprint10)

Merge branch 'devel'
Merge branch 'master' into sprint11-feature-sspi
Bump version to 0.0.11
Check undefined instead of exists

If you change a field to be "", it will fail the
`if (field)` test.  Instead use _.isUndefined() to
see if the variable is specified in the json sent
by the client.

Fixes #141.
Use `find` instead of `like`

Like has an issue where it adds % modifiers on each
side.  Due to this bug in waterline, use find instead.
Luckily find is case insensitive in waterline, so it
operates the same as like without any matching
operators.

Fixes #142
Remove username from profile view

The username is no longer a primary key because
email address is used instead.

Fixes #143.
Check email address before adding

Only allow email addresses that aren't already
registered, or are registered by another user.

Provide appropriate error messages.