Bug fixes to initial sync and dates

* Fixed sync_backup to use twisted
* json rpc correctly supports dates where needed