Common RESTful client code for atlasboard

As a javascript newb I am really enjoying atlasboard and have learned a lot from the atlassian submodule. I've used the bamboo.js lib as a model for bitbucket, jira, and artifactory RESTful clients, because I like the caching and queueing features. I'm wondering, however if there is a cleaner way to consolidate some of that same queuing and caching features into a "super class" that can be shared across the different clients. Has anyone tried to do this or can recommend a js appropriate design pattern I could use that obfuscates the caching and queuing save for a few initialization parameters?