Added basic (incomplete) plugin loading functionality.