Improve Makefile to do conditional compilation
Break out BIPs into separate module

The control and database BIPs are left in the interpreter as they are
really part of it.