Port the build system to AutoMake

Fixes #5
Add Makefile.valadoc