add. Flag option to use flask.ext.login for metrics API.

Change-Id: I50c417fcdb5d791bfe79d2ea36f30e7c0ea76fc2
Merge "add. Flag option to use flask.ext.login for metrics API." into production