error message when rehash fails on non-writable directory

Fixes #238
tests galore
configure Travis
skip Ruby stuff on Travis
use C on Travis for even less overhead
add hook lookup tests
fix resolving symlinks in rbenv-hooks