Added basic logging and a new history REST api