New and Rename buttons now support directories

  * Also fixes renaming a file from a subdirectory moves it to the root.
  * Add context info option to dialog, used in the new dialog
  * Added CSS to support new context option for dialogs
  * Fix /pages view messing up directory creation in new
  * Removed the Edit and Rename buttons from historic view
Merge pull request #598 from dekimsey/new-page-in-current-directory

New page button now respects current directory
Fix page titles for non markdown formats
Merge pull request #628 from arr2036/fix_titles

Fix page titles for non markdown formats
Add option to specify index_page

Fix redirect to index_page creation for subdirs

Redirect attempts to access directories to index_page

Add tests
Merge pull request #631 from arr2036/master

Fix redirects to index_pages for subdirs
Allow the sidebar side to be specified
Merge pull request #632 from arr2036/master

Specify the sidebar side