Add functionality for local API endpoint

Regarding #3, I wanted to add this ability to the rubygem. Good idea? Bad idea?