Would it be possible to dual-run, and play game either using Flash or the new UI (HTML5 or whatever it will be). This would allow a smooth transition, with downtime for new UI if needed that doesn't affect players access to the game.
The underlying database and account access mechanisms should be able to stay the same, with only the UI technology that requiring update?