Use Base64 encoding for OS parameter

I didn't even realize we already added this in server.rb. So instead
of just escaping the OS parameter, we also encode the data in base64.
I also added prependmigrate to avoid unstable conditions for the payload.
Put PrependMigrate on hold because of #1674

But I will probably still want this.
Land #2528, base64 for ms13-080