Expose more info to caller of resolve_dependencies

In order to enable the 'error' logic we need in website.py, I've
modified resolve_dependencies so that it returns a deps namedtuple with
various attributes on it.