Made it possible to license.
Changes to support licensing of posts.
Removed some debugging code.