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.