Added logging support in backend (page views and events).