added commotiond socket cli flag; reconnect to commotiond on each cmd execution
set signal handlers for SIGTERM/SIGINT
add pid cli flag
improve init script to use openwrt lib
better co_obj alloc/cleanup, remove globals
Merge pull request #1 from opentechinstitute/r1-improvements

R1 improvements

tested by areynold