Create tmpenv() context manager

Version:   2014.1009.47
Change-Id: Iad4b41a48e570ef903f9046fdf2cd05287ec57ed
Use util.tmpenv() context manager

Version:   2014.1009.48
Change-Id: Ieb8c47852f56676b7d1c472363eb60a83426b2b2