core: Refactored access logging. Now via separate module