Connected Open mHealth's write API to survey response uploading.

Survey responses may now be uploaded via the Open mHealth write API. The registry read call returns information about specific prompts, but it is illegal to try to write to these.
Merge branch 'master' of github.com:cens/ohmageServer into ohmage-2.15
Merge branch 'master' of github.com:cens/ohmageServer into ohmage-2.15
Merge branch 'master' of github.com:cens/ohmageServer into ohmage-2.15
All prompt types are now allowed to have conditions to a degree.

Conditions were completely disallowed for certain prompt types. However, if the condition was testing if a prompt was skipped or not displayed, this is perfectly valid. So, it is now acceptable to create prompts with conditions that reference the SKIPPED and NOT_DISPLAYED response types.
Removed a constraint on prompt IDs.

It is now acceptable to have the same prompt ID across multiple surveys, but it is still invalid to have the same prompt ID multiple times in the same survey.
Allowed conditions on messages and repeatable sets.

The condition-checking code moved up the class hierarchy, so now messages and repeatable sets may now be refrenced in conditions. However, their value may only be compared to the NoResponse values, e.g. SKIPPED and NOT_DISPLAYED.
Merge branch 'master' of github.com:cens/ohmageServer into ohmage-2.15
Replaced the 'res' property in photo prompts with 'maxDimension'.

The 'res' property was not being used, so it has been deprecated. A new property, 'maxDimension', will take its place as it more explicitly defines what the property is meant to do.
Added the default observers.

Now, when a server is first created the default servers will also be created. The update script, however, will not add these observers because it is presumed that they, either, already exist or aren't desired. To add them, go to the db/settings/default_observers.sql file and execute the appropriate lines.

Closes #503
Fixed a bug in the default observers.

One of the default observer-stream definitions was incorrectly formatted resulting in invalid JSON. This fixes that along with removing some unused code.

References #503
Actually fixed the bug where the JSON was malformed.

The previous fix escaped the double quote, which was not what was desired. Instead, a second escape was used to create the escape needed in the actual text.

References #503
Merge branch 'master' into ohmage-2.15
Merge branch 'master' of github.com:cens/ohmageServer into ohmage-2.15

Conflicts:
	src/org/ohmage/domain/campaign/Campaign.java
	src/org/ohmage/domain/campaign/prompt/PhotoPrompt.java
Removed some missed merge messages.
BROKEN: Initial commit with a broken source file.

This is because Git will not allow you to add new files and then switch branches without commiting. Never pull this commit. If you see this commit message, pull a different branch.
Added the campaign assignment API.

The campaign assignment API allows the requesting user to assign a campaign to another user with a corresponding campaign mask. This mask describes what subset of the surveys the user should see. This means that, if the campaign is visible to a user, only a certain subset of the surveys will be returned in the campaign definition.

This API also allows the requesting user to create a new account. The account will not be an admin and will not be able to create campaigns. It will be ready to use and will not require a password reset.

This API also allows the requesting user to add the user to a class. The class must exist and the requesting user must be privileged in that class. The user being assigned will be restricted in the class. If the user is already associated with the class, their permissions in that class will not change. While the API creates the appropraite campaign/survey mask for the user, the class association makes the campaign visible to the user.

This is an incomplete feature because the campaign/read has not yet been modified to adhere to the mask.

References #493
Added a survey response creation call.

The survey response being uploaded was not being saved. This has been fixed.

References #493
Merge branch 'master' of github.com:cens/ohmageServer into ohmage-2.15
This includes documentation but no substantial changes.