tab_window: null members on construction

introduce tab_window ctor and null memebers during construction. show_tab() may be
called before window_refresh() [which sets ypad_pos and xpad_pos to 0], causing prefresh()
call with uninit win->ypad_pos, win->xpad_pos args.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
parameters: fix uninitialized values in param/result getters

-- get_param_index()/get_result_index() may be called for unknown parameter,
causing new map entry creation via operator[] access. it's not safe to check
returned pair->second value for newly created map entry, since there is no default
ctor for int type. use map::find() instead.

-- get_parameter_value(char *) now uses get_parameter_value(uint), which performs
parameters overflow detection and prevents illegal read. this one was affecting
power_device_sort(), returning garbage to compare function.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
runtime_pm: register parameters

register parameter during runtime_pmdevice() construction, making
call to get_parameter_value() in power_usage() valid.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
csstoh.sh shell script fixes cross compiling issues

Added the csstoh.sh shell script from Igor Zhbanov found here:
http://lists.01.org/pipermail/powertop/2012-July/000151.html
also patched the Makefile.am to use the csstoh.sh script.
The compiled csstoh binary doesn't work for cross compiling,
however Igors Patch never got applied upstream.