New historydb implementation. Small changes in interface.
Temporary disabled add log and activity at once method.
Updated HTTP API: renamed 'timestamp' to 'time'.