Add method on product to retrieve endpoints
Add class to dd element
Set endpoints as var and convert to object
Simplify the endpoints get
Update endpoint changes to work with class on dd
Set db_name as it can differ from product, and use that to run query
Merge pull request #24 from rackerlabs/staging

Fixes for search and endpoints