Fixes for Firefox on Android

Major changes to make mozilla_sync work in combination with Firefox on Android.
These include implementing all specified output formats and adding additional Weave headers.

Fixes owncloud/apps#826
Fixes owncloud/apps#1163