More backend code

- load/write images
- messages get by id, and lat/lon
- messages write