React mixin to handle HTML5 history