Added API-Endpoints for chat

Adds the following API-Endpoints

* `getChatHistory(padId)`, returns the whole chat-history
* `getChatHistory(padId, from, to)`, returns a part of the chat-history
* `getChatHead`, returns the number of the latest chat-message

Fix for https://github.com/ether/etherpad-lite/issues/580