Rewritten Service Code to handle resolutions correctly, enhancements

- Implemented handliing of resolutions
- Named GetMediaFromURL correctly
- Fixed some minor mistakes