server: restart from scratch: implement a REST API

Use express module to get HTTP requests.
The server is at the same point as before, but is better.

API still needs to be defined.