New old logs backend code and fixes

Old logs are now optimised and should no longer cause problems (needs to
be tested)
Fixed RDM Manager related issues and added @pandaman09 fixes from the
master branch.