Restore the code that pushes the port input on the history. This code was inadvertently dropped when moving to the FPP back end.
Move the auto-generated code into the base class. This will be more convenient, because in the common case that the auto-generated code is sufficient, the user won't have to maintain this code. When the handler needs to return a value, use the default value for the port return type.
Closes #397.