Add a websocket api service

This is going to be used by html activities.