Split up GET and POST request handlers
I also changed the link to localhost instead of 127.0.0.1
The change to localhost is in case someone uses 0.0.0.0 as their
localhost instead of 127.0.0.1. This would cause the server to bind to
the wrong address and then it would not appear. Instead, using the name
localhost means that regardless of which inteface they use (127.0.0.1 or
0.0.0.0), the website will bind and link to the right address.