Override ssl? method for testing

Add helper to login an account
rebase
Workspace controller functional tests
Changes for Rails > 3 compatibility
Identities might be nil, use .blank?
New style validations for document_resource