Parsing different types of catalog refs

So far handles file (path) and http references, and splits the service and catalog info correctly.

Not sure if it's overly fancy though.