Start work on plugin loader.

This adds some initial work for plugin loader. The job of a plugin loader
is to look for plugins from certain directories, and then make sure that they are
valid (by eg. looking for certain symbols in them).