Combine closeDoor and openDoor functions into a common actuate function that checks status and adjusts the POST that way.  Less duplicate code this way.  Also fixed the JSON interpretation so I'm not looking for [[STATUS]]