Fix bug with dependent plugin loading.
Prevent plugins getting initialized twice.
Merge pull request #2 from Jahze/master

Plugin loading bug fixes