Added support for opening/editing existing wiki pages

Moved template classes to a new module