Merge pull request #121 from repotag/master

Fix search behavior and tests for bare repos.
Allow escaping of Macro's with single quote.
Merge pull request #122 from repotag/escape_macro

Allow escaping of Macro's with single quote.
Fix hash in TOC
Fix broken test for #124
Merge pull request #124 from ngyuki/fix-toc-hash

Fix hash in TOC