Rework to support libwebos-gui based rendering

Signed-off-by: Simon Busch <morphis@gravedo.de>