Split up core and plugin, generate index.html

This is a fixed version of PR #4