modify plugins/Subst.hs to make it work with latest version of pandoc
fix wiki links when `base-url` is set to empty and `absolute-urls` to yes
Fix the recent activity page when binary files are changed/added
use normal spaces instead of nbsp in the activity page
Merge pull request #358 from tianyicui/subst_plugin

modify plugins/Subst.hs to make it work with latest version of pandoc
Added new template variables isdiscusspage, articleUrl and discussionUrl.

This makes it possible to treat discussion pages specially in the templates, and to have links between the article page and the discussion page.
Bump blaze-html upper bound to 0.8
Added hasmessages template variable.

In the content.st template, there is a conditional $if(messages)$ around the inclusion of the messages.st subtemplate. However, this always evaluates to true, even if the messages list is empty.

I can't find any good documentation for HStringTemplate's conditionals, so I don't know if this is the correct behaviour or not; in any case, I added the hasmessages template variable, which will be set to False when messages is empty. I also modified the content.st template accordingly. Now the messages.st subtemplate is only included when messages is non-empty.
Added template variables articlename, discussionname and isarticlepage.

This is just for consistency and completeness.
`hasmessages` not necessary after all, got `$if(messages)$` working

I realised now that `hasmessages` is not necessary after all. I modified `filledPageTemplate` to only set the `messages` template variable when `pgMessages` is non-empty.

Now the `$if(messages)$` conditional in the original `content.st` works as expected, so this commit switches that back to the original.
Added redirects to gitit (fixes #233)

You can now create redirect pages by adding the a "redirect" field to the metadata of a page. It works as follows:

 - When a user visits a redirect page, they are redirected to the destination page.

 - At the destination page, a message is displayed telling the user that they have been redirected from the source page. A link is provided back to the source page, with a parameter to disable the redirect (so that it can be edited).

 - Gitit will detects circular redirects and explain to the user what is going on in such cases.
Merge pull request #407 from duairc/redirects

Added redirects to gitit (fixes #233)
Fix redirects to properly escape URLs in HTML
Merge pull request #408 from duairc/redirects

Fix `handleRedirects` to properly escape URLs in HTML
Add "search for pages containing..." option to `createPage`

Changed the "page not found" page to give the option of searching for the page name in other pages in addition to the option to create the page with that name.
Fixed inconsitency in the the quotes used in createPage
`showDiff` wasn't setting `pgTitle`
Merge pull request #410 from duairc/diff-title-fix

`showDiff` wasn't setting `pgTitle`
Merge pull request #409 from duairc/create-or-search

Add "search for pages containing..." option to `createPage`
Merge pull request #405 from duairc/hasmessages

Added hasmessages template variable