new redirect url design; finish the server part
add tests for the new redirect scheme for server
use a more readable url scheme for the redirect mode; fix two small bugs in server.js and redirect.js