Simplify bin/pgrest wrapper

and make it possible to be installed from git directly.