changes to enable REST interface

there is still a lot to work on, but it start to be alive ;)