Refactor proxy-enabled payload handling

This fixes a couple bugs and generally cleans up the proxy option parsing code. 
The previous code only considered LHOST and used that to globally define ipv6 support, where the actual use case needs to handle PROXY_HOST and LHOST separately.