fix possible crash in ui

ui values of type "number" will be passed as float if not specified otherwise
we add option="int" here
massive code cleanup/coding style

* add #ifdef for headers
* use class instead of structs
* move logging to LOG_DEBUG, remove __FUNCTION_ from LOG_INFO
* use CStdString everywhere (no std::string anymore)
* get rid of a few char*, use c++ functions
* use c++ style in general. e.g. constructors instead of assignments
* use PVR_STRCPY as strncpy makro (copied from other pvr addons)
* probably much more