made scripts thread safe
job kill and job flush are now job remove, slave flush is now slave remove

implemented slave_remove and job_remove
stopped slave crashing when its record is removed from the database