Partial commit - markdown pages and course invites.

Continuing to port and refactor functionality from the previous version.

This commit includes an initial version of course invites and markdown
pages.