Add install/uninstall targets to the makefile.

Also clean up the build process a bit so things can be
executed both from the build directory and when installed.