extracted event marshaller to a separate lib; added support of a single-element funnel; fixed minor bugs that occur when user switches between event types
initial state of a single-event funnel is taken from hidden inputs
state of hidden inputs is updated correctly