rewrote lifetimemanager service and activity as local bound service, so that it can be correctly integrated in main jouler energy app