Changes for new REST services.

Also added code to start to support HLS.