Extract retrieving bag information to a service.

Thanks to @FND for the promises example at:
   http://fnd.tiddlyspace.com/JavaScript%20Promises

This was initially a bit trickier at first than it should have been.
Because of the async nature of the http request, sometimes the data
would not be there when the incoming uri included the bag/tank name.