Add API interface

Make it easier to retrieve metadata from the publicdb using its API
Takes the urllib/json stuff out of your hands