actor: Make actor not dependant on the global actor variable
actor: Make main method part of the actor class
actor: Create a proper way how to run actor as a daemon