Draft: rest & hypermedia apis; first version complete.