Fixed bugs and improved some code

-Changed android-support-v4 to android-support-v13
-Now no longer allows saving the location id as null in the database.
-Fixed bug when sort map with equal values, the items were removed.
Creates new method to sort without removing. 
- Improved geofence code. Only saves geofence with duration greater than
5 minutes.