Merge pull request #3 from Tox/master

Sync with main project
Wide characters support and removed unused files
Create cfg directory
Put back license
Put back license
Merge pull request #157 from Ansa89/widechar

Wide characters support
general cleanup: rm unused config.h, add license info to device.c/h, add a couple compiler options and fix warnings