Updating validations on accounts.
Merge remote-tracking branch 'nathan/memberships-ui' into nathan_memberships
Merge branch 'memberships-ui' of github.com:nathanstitt/documentcloud into memberships-ui
Updated easy_xdm RPC javascript

Includes the new remote_data call.  Removed misspelled js file.  Since
the new code uses ajax, it needs jquery.  Could really use a lighter
lib for that since it only does one ajax call.  Not sure what's out
there but sure there's something.
CORS support for annotations.

CORS requires the headers to be present on any request, and PUT and DELETE are pre-flighted.
New remote_data call.

This is called by the viewer as soon as it loads.  Gets the current
user information (if available), document status, and all the
annotations.

Should be moved to a different controller.  Not sure if documents,
accounts, or an entirely new controller would be more appropriate.
Only attempt to join on the organization if the account belongs to one.

This is probably already present.  Is needed on the branch to work around errors.
Creating a unified authentication controller
Incorporating memberships the annotations accessible to an account.
Make the current_organization a requirement for the editor.
Login page needs the workspace layout.
Adding guards to Accounts for reader accounts
Setting the workspace and public controllers for non-organizational users.
Don't forget the membership notification email.
Moving Identities views over to Authentication views.
Pass account JSON object in directly instead of setting window global variable.

White-space and general code cleanups.
Merge branch 'memberships' of https://github.com/documentcloud/documentcloud into memberships-upstream
Fixed merge conflicts in
 * app/models/annotation.rb
 * config/routes.rb
by choosing upstream
Compacted login view no longer resides in workspace

All login functionality has moved into authentications controller.  Load view from there
'remote_data' call was returning 404, needs explicit route.
Merge branch 'memberships-upstream' into memberships.  This pulls in up-to-date work from memberships