Also fix some code convetions
Add a base class for Inputs so we have an interface for this. Use this interface in Rubella::Input::JSON.