Make dogeapi a class that takes in api settings

This makes dogeapi.js a proper node module that could be used without having to copy paste code around. In this case one would instantiate a new DogeAPI object and pass in their API key as well as end point. This would now be publishable to npm.