Now the frontend can talk to the backend

Added a few API routes to the backend so that it’s possible to do
things like create, delete, and get messages. Added some javascript
code to the frontend so that it knows how to ask for what it needs from
the backend.