Fixed various bugs and added basic pilight kernel module wrapper

This commit adds premarily support for the pilight kernel module.
It also fixes some bugs that can affect the settings of some users.