Added a decent API for memory and lag listeners. Now, implement the
respective new class in a new class and register your listener using its
respective registration method.