Refactored the build script, added the plugin directory for supported plugins
and updated plugins to their latest revisions.