Made plugin installable via CLI and Plugman

Updated plugin JS interface and made it installable via CLI and Plugman.