Add a fallback for loading files, and cache them.

There is one issue remaining:

When loading files on an ng-repeat, template will be called multiples time and fire multiple http requests.
The only workaround I can see for this is to pre-load the template we will use into ng-repeat. This way the will only be loaded once. This is not needed for normal / singles ng-inline.