1.	Added CORS support for metric api.
2.	Added metric test file.
3.	Simplified cache code.
4.	Prettified runtime.py