Reorganize source code and build products

Source files are now located in 'src', intermediate build products in
'build', and executables in 'bin'.  The Makefile has also been
refactored.