Remove old conf file and doc directory

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768237
Updated build script and added automatic test