1. merge quota fixes from "browserstate" branch
2. add extenral control uppon the new state creation during replace state
3. change stateId generation so its now using increment counter that stored in sessionStorage