change to use macro for defining base URL.

- to change hosting for debug, use UserPref to define base URL.