updated location plugin to use error codes
Merge branch 'master' of https://github.com/cobaltians/plugins