Refactored tumblr API classes