Few issues fixed

- fixed id in JSON being sent as string instead of integer
- fixed code formatting
- fixed not asking same question after wrong answer
Code cleanup
- all \t -> 2 spaces
- removed need for /form_sent page
- removed some redundant code