Using 127.0.0.1 instead of localhost to avoid ipv4/ipv6 issue

This is an attempt to fix the hanging of some of the tests on Travis CI.
The idea being that the lookup of localhost in /etc/hosts is taking time
for some reason, perhaps localhost is resolving to ::1 which is the
loopback address for ipv6.
Removing randomKey from CryptoUtil

The method randomKey used SecureRandom to generate a generate a random
seed. This call uses depends on the operating system for randomness and
was causing long stalls on linux. The method itself was only used in one
place and by unit tests. The tests can all use a hard coded tokenKey as
for the tests this does not matter.
Merge branch 'AGPUSH-336-travis-hanging'