Added get templates API to templates router

Added the get templates API to templates router. The router is still throwing an error cause its not able to convert the dict returned to a json. That still needs to be sorted out. Also for getting the template content I am using a library called requests instead of using github egg cause the url in the catalog are all raw urls.