eliminate redundancy with functions
door handler class
startup, door, deadbolt api POSTs testing