Simplified structure

Modified some functions. Split handle_submit into handle_form and
handle_submit.
Merge branch 'hw3' into hw4
Changed test cases

Still getting errors running test cases. Need to refactor server.py for
hw5.