Move ManualLogEntry to RecentChange logic into own function

There are certain cases where extensions might want to get
a RecentChanges object without actually inserting it into
the recentchanges table.

Change-Id: I2873c648285a2918661c3650bb90e8db0e05c40c
Merge "Move ManualLogEntry to RecentChange logic into own function"