refactored compass.js and location.js so places and friends search uses the same files. Removed two js files from this.
refactored compass.js and location.js so places and friends search uses the same files. Removed two js files from this. merge done.