Fixed a bunch of bugs.  Added replication lag and hr_master plugins