correcting bugs, fixing Photobucket with x-rauth header hack
prototyping automatic refresh token handling