Add client-side flag for disabling the viewer

Also set it on server-side. Use mw.config to override.

Change-Id: I00ea1ee8544d2c802f09fd25f7abaf29752f3641
Merge "Add client-side flag for disabling the viewer"