Support replaceState

When using Immutable data structures *replaceState* must be used instead of *setState*. See for reference this issue: https://github.com/facebook/immutable-js/issues/202