Merge pull request #28 from dimagi/cz

hotfix for actually dealing with sync token checks with no server date
update sync tokens to be cloudant compatible
Merge pull request #29 from dimagi/cloudant

update sync tokens to be cloudant compatible
force save cases and forms during case processing to fight pillows

- also remove misleading initial_processing_complete flag for cases
- minor cleanup and better error logging
only force save if we know about all forms in the case + tests
Merge pull request #30 from dimagi/force-update

force save cases and forms during case processing to fight pillows
add xform xmlns and name properties to case actions (looking forward)

+ basic tests
Merge pull request #31 from dimagi/save-xform-metadata

add xform xmlns and name properties to case actions (looking forward)
better error message