Orderbook API

This PR contains the api and some initial orderbook related updates.  

Should not be merged to production yet.