rework database stuff. glue everything together. it works now.

move a lot of the database stuff into the new files:
bwdb_autoinctable_row.class.php and bwdb_keyed_row.class.php.  These are
base classes and make implementing row-oriented data operations pretty
simple. The new file bwdb_rowdefs.php makes use of these base classes to
define 3 'row' classes for 3 different specific tables.  bwdb.php now
contains the most basic mysql wrapper.

quicky file doRFIDd.sh provides a way to start the program and capture
material printed to stdout and stderr.  main.php is the true starting
point.

remove extraneous stuff from rfid_key.class.php.  This class now just
handles the parsing of the rfid stuff and gives access to it. very
simple.
finish committing changes named in the previous commit