Merge pull request #79 from ernstchan/dynamic-reflinks

Ref-links are now resolved on every page-output.
Removed whitespace before single post.
Merge pull request #80 from ernstchan/bugfixes

Removed whitespace before single post.
Forgot to resolve ref-links for single-posts (websock & json).