Move logger and running from module to object

Signed-off-by: Daniel Francis <francis@sugarlabs.org>