Split the plugin into separate modules

Moving towards multiple version support o/
Only saddle the horse once. Fixes #236
Close inventory before performing command. #237