Added libraries, and re-worked plugin system
More plugin work and added basic upload support