Started on controls

Added controls.lua, added methods to add behaviour and check for
existing ones, and started adding a function to have an object jump.