Reformat
Fix second level options.
options like on->someOption and button->option
did not work as the loop was just asking if, for example
"on" is set in the user defined option array.
and even though the user might not have spesified a, for example
"next" event, but has spesified the "slide" event. The entire
"on" will be replaced by the user spesified one, and this array
does not contain the proper default, causing in, amongst other things
a "property does not exist" error when trying to trigger events.
Move triggering of next|prev|slide event to after slide has happend
This to make sure that we actually get the corrent
"currentSlide"