Add a layer of indirection before bottle route dispatch where any exception in handling of REST request is caught and logged.
Sanitize cgitb contents before logging. Follow up commit on contrail-generateds is next.

Change-Id: Ida0b2b95085133f1b8b3f41b2815419dfd459499