Merge of NXT API project and websocket server fot the api

Websocket server now integrate the API
Minor changes in core API