misc fixes

Signed-off-by: Mattias Andrée <maandree@operamail.com>
colour apply improvement and fix

Signed-off-by: Mattias Andrée <maandree@operamail.com>
set default chroma weight to 1

Signed-off-by: Mattias Andrée <maandree@operamail.com>
let the compiler optimise

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix support for parameterless balloons + support lower case hexadecimal

Signed-off-by: Mattias Andrée <maandree@operamail.com>