add option page to select environment and locale.

1. and fix a preview block problem.
2. TODO need to fix bug in console of send preview message multiple
times.