Queue interface for API server

Add work queue operations to store interface and lift them throught the WritableToken interface.

Start filling in the details of the "business logic" in the API server.