Making authentication algorithms pluggable with tests.
Merge pull request #1 from dimalev/pluggable-auth

Pluggable auth
Merge branch 'ups' into websocket

Conflicts:
	src/core.js