Few changes to allow for better plugin use

Also some mods to allow fdm slicing in the future