Added IPv6 support
Added tests to prove IPv6 support
Removed custom hex encoding and replaced it with apache commons codec implementation