Removed some code from connection_ready in to write_response to make it cleaner
Removed un-used async delay that didn't work. Couple of typo fixes