Switch to urllib2 for api communication

Initial testing commit to use urllib2 as opposed to httplib (in
nbconnection)
Cleanup pass 1

First pass of code cleanup to switch to urllib2
urllib2 cleanup pass 2

Remove retry wrapper helper and do directly in traktJsonRequest()
Split the url requess/reading to helper function
Fix error handling and give more descriptive log entries
Revert changes to scrobbling
urllib2 cleanup pass 3

Alter a few debug messages
urllib2 cleanup pass 4

Fix typo in 2 debug messages
urllib2 cleanup pass 5

Fix another debug message, add description to get_data() helper
urllib2 cleanup pass 6

Add one more check for getting data, will cover api calls that don't
return a status variable, shouldn't loop three times for the fun of it
anymore on these now.
urllib2 cleanup pass 7

Fix one last item that would have prevented retries from happening on
malformed JSON data parsing.
Fix exception if failure after all retries

Handle scenario where all retires fail, data would be none, so check for
this.
Add delay to retry

Add small delay to sections where it will cause a retry
Remove forgotten urllib2.request

Seems I forgot to remove a residual reqeust method when the method was
GET, it should not do this here.
Fix for previous commit

Seems python doesn't like empty indented code blocks, so removed the
else and elif.
Changed the way an unknown method is checked for.
Use basic HTTP authentication

Use basic HTTP authentication instead of passing username in JSON data.
Log JSON post data.
Let retry count be configurable

Add retry count to settings dialog, between 1 and 10, with a default of
3.
Add english string for settings dialog.
Fix int conversion from previous commit

Fix int converions, since slider stores as float, convert to float then
to int.
Alter settings dialog slider to show as int value.
Merge pull request #37 from nate1280/use_urllib2

Use urllib2 for API communications