Draft of source code

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Fixed compilation errors

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Merge pull request #1 from webOS-ports/tofe/work

Tofe/work