Closes #214. Added in additional logic for the community types functionality, as well as additional/fixed upgrade sql and a script to populate the database with the appropriate data for allowing the use of Course and Learning Module community types, fix to the logic of how the template thumbnails display, addition of the ability to link (or unlink) courses to course web page communities through the create and modify interfaces, and a number of other general bugfixes to interface or logic as detailed in the ticket.