implement focus mode, count player coords from window corner
redirect main collision callback to states' callback
Merge branch 'master' of github.com:niksaak/machine

Catsup with upstream changes.

* 'master' of github.com:niksaak/machine:
  Add bullet class, add shooting in Player table, move 'on_collide' in functions_lib

Conflicts:
	main.lua