Started implementation of offline mode based on WebSQL plugin for firefox
https://addons.mozilla.org/en-US/firefox/addon/html5-websql-for-firefox/
Expanded Firefox websql implementation to more closely match the
processing model defined by the WebSQL API
Workaround for Mozilla INSERT VALUES bug

Using positional parameters with an INSERT statement
doesn't seem to work: so we just used named parameters
with the form :p1, :p2, :p3...etc

y
Worked on a smoother install experience for FireFox offline
Fixed compile error in tests
Merge branch 'appengine' into firefox-offline
Improves UI to support enabling FF permissions
and experimenting with installed Mozilla apps
Bumped up appengine version to test on fresh domain
[#42439397] REST interface

o Configured Jersey for project
o Replacing some servlets with JAX-RS Resources
o Added first public rest endpoints for geography

Conflicts:
	server/pom.xml
	server/src/main/java/org/activityinfo/ActivityInfoCore.gwt.xml
	server/src/main/java/org/activityinfo/client/dispatch/remote/RemoteDispatcher.java
	server/src/main/java/org/activityinfo/client/dispatch/remote/cache/CacheManager.java
	server/src/main/java/org/activityinfo/client/inject/AppInjector.java
	server/src/main/java/org/activityinfo/client/inject/AppModule.java
	server/src/main/java/org/activityinfo/client/local/LocalController.java
	server/src/main/java/org/activityinfo/client/local/LocalModule.java
	server/src/main/java/org/activityinfo/client/local/command/LocalDispatcher.java
	server/src/main/java/org/activityinfo/client/local/sync/DownSynchronizer.java
	server/src/main/java/org/activityinfo/client/local/sync/SyncStatusEvent.java
	server/src/main/java/org/activityinfo/client/local/sync/Synchronizer.java
	server/src/main/java/org/activityinfo/client/local/sync/SynchronizerImpl.java
	server/src/main/java/org/activityinfo/client/page/app/AppFrameSet.java
	server/src/main/java/org/activityinfo/client/page/entry/form/ActivitySection.java
	server/src/main/java/org/activityinfo/server/StartupListener.java
	server/src/main/java/org/activityinfo/server/authentication/AuthenticationFilter.java
	server/src/main/java/org/activityinfo/server/bootstrap/AbstractController.java
	server/src/main/java/org/activityinfo/server/bootstrap/LoginController.java
	server/src/main/java/org/activityinfo/server/command/DispatcherSyncImpl.java
	server/src/main/java/org/activityinfo/server/command/handler/HandlerUtil.java
	server/src/main/java/org/activityinfo/server/command/handler/RenderElementHandler.java
	server/src/main/java/org/activityinfo/server/command/handler/UpdateMonthlyReportsHandler.java
	server/src/main/java/org/activityinfo/server/command/handler/UpdateUserPermissionsHandler.java
	server/src/main/java/org/activityinfo/server/command/handler/sync/SiteUpdateBuilder.java
	server/src/main/java/org/activityinfo/server/endpoint/gwtrpc/CommandServlet.java
	server/src/main/java/org/activityinfo/server/event/CommandEvent.java
	server/src/main/java/org/activityinfo/server/mail/MailMessages.properties
	server/src/main/java/org/activityinfo/server/mail/MailMessages_fr.properties
	server/src/main/java/org/activityinfo/server/mail/MailSender.java
	server/src/main/java/org/activityinfo/server/report/ReportModule.java
	server/src/main/java/org/activityinfo/server/report/generator/map/IconLayerGenerator.java
	server/src/main/java/org/activityinfo/server/report/renderer/itext/ItextMapRenderer.java
	server/src/main/java/org/activityinfo/shared/auth/AnonymousUser.java
	server/src/main/java/org/activityinfo/shared/command/Filter.java
	server/src/main/java/org/activityinfo/shared/dto/SiteDTO.java
	server/src/main/resources/template/kml/ActivitiesNetworkLink.kml.ftl
	server/src/main/resources/template/page/Host.ftl
	server/src/main/resources/template/page/Login.ftl
	server/src/test/java/org/activityinfo/client/local/LocalControllerTest.java
	server/src/test/java/org/activityinfo/client/local/LocalModuleStub.java
	server/src/test/java/org/activityinfo/client/page/entry/editor/MapTest.java
	server/src/test/java/org/activityinfo/server/bootstrap/ControllerTestCase.java
	server/src/test/java/org/activityinfo/server/bootstrap/ViewTestCase.java
	server/src/test/java/org/activityinfo/server/bootstrap/fixtures/MockHttpServletRequest.java
	server/src/test/java/org/activityinfo/server/bootstrap/fixtures/MockTemplateConfiguration.java
	server/src/test/java/org/activityinfo/server/command/CreateSiteTest.java
	server/src/test/java/org/activityinfo/server/command/GetSchemaTest.java
	server/src/test/java/org/activityinfo/server/command/SyncIntegrationTest.java
	server/src/test/java/org/activityinfo/server/report/renderer/itext/ItextReportRendererTest.java
	server/src/test/java/org/activityinfo/server/schedule/ReportMailerTest.java
	server/src/test/java/org/activityinfo/shared/command/GeneratePivotTableHandlerTest.java
	server/src/test/java/org/activityinfo/shared/command/LocalHandlerTestCase.java
	server/src/test/java/org/activityinfo/shared/command/PivotSitesHandlerTest.java
[#39549737] FireFox Offline Mode

Merge branch 'firefox-offline' into staging

Conflicts:
	server/src/main/java/org/activityinfo/ActivityInfoFFTest.gwt.xml
	server/src/main/java/org/activityinfo/ActivityInfoProduction.gwt.xml
	server/src/main/java/org/activityinfo/client/i18n/UIConstants.properties
	server/src/main/java/org/activityinfo/client/i18n/UIConstants_fr.properties
	server/src/main/java/org/activityinfo/client/inject/AppInjector.java
	server/src/main/java/org/activityinfo/client/local/LocalController.java
	server/src/main/java/org/activityinfo/client/local/LocalModule.java
	server/src/main/java/org/activityinfo/client/local/capability/StartupMessage.html
	server/src/main/java/org/activityinfo/client/local/capability/StartupMessageFirefox36.html
	server/src/main/java/org/activityinfo/client/local/capability/StartupMessageFirefox36_fr.html
	server/src/main/java/org/activityinfo/client/local/capability/StartupMessage_fr.html
	server/src/main/java/org/activityinfo/client/local/ui/PromptOfflineDialog.java
	server/src/main/java/org/activityinfo/client/page/app/SettingsPopup.java
	server/src/main/java/org/activityinfo/server/bootstrap/BootstrapModule.java
	server/src/main/java/org/activityinfo/server/bootstrap/HostController.java
	server/src/main/java/org/activityinfo/server/bootstrap/model/HostPageModel.java
	server/src/main/java/org/activityinfo/server/command/handler/GetSyncRegionsHandler.java
	server/src/main/resources/template/page/Host.ftl
	server/src/test/java/org/activityinfo/server/bootstrap/HostViewTest.java
	server/war/WEB-INF/appengine-web.xml
Fixed problem resulting from merges
Refactored the login pages to be more resty
[#42439397] Additional REST endpoints

o Basic Authentication support
o JSON serialization of GXT models
[#42439397] Integrated swagger api documentation (wip)
[#43120483] HOTFIX: Switch to postmark for transactional emails
to ensure higher deliverability of emails
[fixes 44458951]  Indicator Tree cascade problem with selection set and apply selection method
Resolves class loading problem introduced by swagger
Updates coding style definitions

o Change from tabs to spaces
o Refined clean up rules to ensure that certain
  things required by serialization are left intact
[Fixes #42704635] Cleans up license and file headers

The copyright statement and file headers were left over
from the aborted merge with the sigmah project in 2010
and just haven't been cleaned up since then.
Bulk code cleanup

o Automated code cleanup of all sources according to eclipse style rules
o Added checkstyle plugin to enforce indenting rules
  Will add other checkstyle rules gradually

Hopefully this will make merges easier.

Before you commit files, run mvn checkstyle:checkstyle to see any violations.
You can see the report in target/site

The build will fail if you commit changes that violate
the style rules.
Rolled back attempt to speed up unit tests

Using TRUNCATE TABLE instead of DELETE FROM to clean up
tables before unit tests seems to causes some tests to hang,
and wasn't any faster.