make stathasher use getopt and pass vaglrind

some small changes: 
 * stathasher now uses getopt for option parsing, and can read `/etc/statsrelay.yaml` by default
 * stathasher now passes valgrind (previously it didn't `free` the string buffer it used to read from stdin)
 * remove the unused option index in statsrelay