Inital functionality to run as service

Added skeleton for application to run as background service