Middleware SerialCommand setup

Added SerialCommand method named registerCommand to allow middleware
classes the ability to register their own commands.
Working on SerialCommand Middleware hooks