Some code refactoring.
Bug fixes in insertToDb method of Environment
Merge branch 'aravind' into priyan

Conflicts:
	app/src/main/java/com/pvsagar/smartlockscreen/services/BaseService.java
Merged changes from aravind, inserted environment into db, and updated Geofence service to post notification about geofence transition.