Merge daemon into master

Merge ability to run using jsvc and some assoicated scripts into master, along with the foundations of a security system.