Cleaner approach to getting an OAuth2 client-authorized RestTemplate without duplicating code from core.
Throw NotAuthorizedException for 401 responses with non-JSON body. SOCIALTW-57
Merge pull request #54 from habuma/master

SOCIALTW-57: Fix mis-handling of 401 responses when the body of the response is non-JSON.