Core: Move logger back into separate file.