Simplify test and avoid relying on precise callback order
Test side effects instead of implementation
Create private methods to trigger events

Most done with grepping
  \$\.emit\('parsley:\w+:(\w+)', (\w+)\)
into
  \2._trigger('\1')
Change implementation of pubsub to rely on jQuery events
Replace all uses of $.emit
Change uses of listen, listenTo and subscribe use jQuery events
Deprecate pubsub module, update doc
Merge branch 'jquery_events' of https://github.com/marcandre/Parsley.js into marcandre-jquery_events
Merge branch 'marcandre-jquery_events' into 2.1
Emit 'parsley:form:validate' before refreshing the fields
Instead of returning a Parsley, return a ParsleyField.
Be lazy and add error container only when needed