Tracking big rewrite

Big rewrite, moving everything into separate folders based on similar functions. Each folder in lib/ is a 'plugin', and all functions and commands are in that folder instead of all over the place