Abstracting the loop for key and mouse actions up to the library.
API makes sure that adding a state to an applet will populate the state
with applet info.
Fix for null-pointer in applet.
Collision detection in and working (future, add buffered collision as
well).

Object list given to states.