allow for index files to be resolved from the indexCache

pathCache creates one entry per `index.html` file, so the `index.html` files with the same path (e.g. as a result of multiple branches being served simultaneously) that are registered afterwards are disregarded, and saved in indexCache.

The issue is we are never looking anything up in indexCache when it is requested. It was impossible before this because there was no way to look up the required `app` and `branch` vars.

This PR adds that ability. As a result `HulaHoop.endpoints.index` can be called with two optional parameters to get the correct index file.

written by @jhudson8 and @patrickkettner


The problem is that if multiple branches are registered that have the same resource path, only the first path will be cached (and referenced).  So, to answer your question, yes - pathCache does not support this.

I do agree that pathCache should be able to handle this as well as indexCache but that might be a bit larger discussion because it would make things non-backwards compatible.  This is because you would always have to supply the app and branch name or pathCache would not know how to look things up.