Watching and creating problems history

Fixed defects. Add an object interface for the Repository module.