Added new REST API.

It is pretty well tested as of now. I also made a gitignore file.
Unbreak main.py

I'm not sure if it's still useful, but whatever.
Change get requests to post requests.

This was for the api enpoints that actually changed data.
Merge pull request #1 from djpetti/master

Add REST API