Switch from httplib2 to urllib2

- httplib2 is not available on openelec
- made adjustements for urllib2