Moved handle_post to it's own function.
Moved delete to it's own handler
Moved the 404 response to it's own function.
Forgot this one.