guardian/frontend — pull request #3480 by janua (2014-03-11 15:43:29+00:00)
Title: Facia serve tag and section

This is the initial move of the code from `applications` to `facia`, in order for `facia` to start serving Section and Tag pages.

It's mainly a move of `IndexController.scala`, and `repositories.scala` which contains `trait Index`, `case class IndexPage` and `object IndexPagePagination`.

`renderFront` in `FaciaController` checks to see if it can handle the incoming path by checking what is inside the `config.json` file. If it is there, it will continue to serve it as a page from `FaciaController`, otherwise it passes on the request to `IndexController`.

There are a few things to do after this PR;
- Remove anything unnecessary from the new code
- Sort out `routes` file in `facia` and `dev-build`

I would rather make these changes in separate smaller PRs as the routes are a bit fiddly. It all seems to work fine for the time being. I was worried about perhaps `IndexController` having the same name in two places, but this didn't seem to harm anything, with the only place I can really seeing it being a problem being in `dev-build`. If it is a problem I will rename it to `FaciaIndexController`.

One thing that is different between the files is the removal of `trait ImageQuery` from `repositories.scala`.

@gklopper