add rudimentary daemon functionality
Merge branch 'master' of github.com:Taywee/luashep