WIP some refactoring + add get_memory_level dbus method call
WIP fix warning from unrelated dbus helper function