Move modules around (logger from utils to core, core.function to its own package, timedarray into the functions package) to allow loading preferences before initializing the logging system