Refined mib slave code with convenience macros for extracting typed parameters and easily creating return values.

Added mib slave endpoints for writing to/reading from the flash memory attached to the controller pic.  Tested these
and they work.  This will form the basis for reflashing the controller pic.