Update to Protocol 7

Update to protocol 7 and also add support for url overriding.