Add empty function to resource generator.

If we generate a resource there is a high probability that we want to
start adding routes to it too. Also it's really helpful to get the
index route by default.
Merge pull request #1817 from abuiles/expose-index-route

Add empty function to resource generator.