Moved the location client/request code to an own file.

TODO:
- There is gui code in there that has to be removed.
- Add more logging.