Restore lib folder and daemon scripts.

This pull request restores the lib folder with additional libraries for processing text messages and the scripts for processing messages.