added Utils.resolve_url and some passing tests