Added support for passing parameters to the format method.
Fixes #713.
refactored ActiveDataProvider.