Modified the FailedSyncDialog so that the user cannot retry the sync until they regain network connection
Added a null check in the InsertFeaturesListAdapter to make sure the layer has a geometryType before proceeding, and created a loader that strips any layers without geometry types from the list, and set the InsertFeatureDialog to use it.
Fixed a bug where if the device went to sleep during project creation, the incomplete project would get created when you go back.
Refactored some things, made a class called ArbiterQueue to reuse the same logic already in "OnReturnToMap" in "OnReturnToProjects".  Also fixed a bug where if the device goes to sleep in the middle of project creation on the Projects page, when the device wakes up, the ProjectsActivity would return to the map, not allowing the project creation to finish.
In Project.js cacheBaseLayer, if the cordova state doesn't get set to updating before layers are loaded, tiles will load, which may cause the map to reset, before the sync completes, causing the app to go into a bad state.  Also switched from using getActivity() in ChooseBaselayerDialog because for some reason it returns null sometimes.