Added a flag to idsrv options to enable web api diagnostics.