Fixed bugs and improved some code

-Changed android-support-v4 to android-support-v13
-Fixed bug and improved power code. Only saves power with interval
between to power
time is smaller than 10s. 
-Improved geofence code. Only saves geofence with interval between to
geofence time is smaller than 5 minutes.