Allow option, callback or callback, option argument order in all cases of LifecycleEvents.
Add tests.
Merge pull request #772 from batmanjs/lifecycle-events-fix-arg-order

Fix argument order for lifecycle events.