Moved first parameter of patterns to first line.
This goes against PEP8 but I think they looks clearer this way.
Removed document search
Cleaned up documents index view
Removed image search view
Cleaned up image index view
Revert "Moved first parameter of patterns to first line."

This reverts commit 22ddc66776da61c47d416707a59d27c8697e2de8.
Merge pull request #63 from kaedroho/cleanup

Cleanup