Refactoring to use the twistd daemon application
Integrated the twistd plugin system to start and stop the service. Added a new hook and event system as the base