Code Restructure

Updated/consolidated interfaces, restructured the plugin loader,
standardized variable names, improved error handling, and added
preliminary support for calibration plugins.