Add time to case generator for OTA restore

This commit is to fix http://manage.dimagi.com/default.asp?62960.
Includes lots of fixing tests because of it as well.
Remove tons of stray spaces
Also use time in date string for V1 apps
Fix test failing due to datetime.now()
Merge branch 'master' into timestamp

Conflicts:
	casexml/apps/case/xml/generator.py
Merge pull request #66 from dimagi/timestamp

Add time to date modified field for OTA restore
Quick function to get cases referenced by an xform
Use iter_docs to grab the cases