REST interfaces

JB/Sebastian to fill in