Added documentation to script methods

Conflicts:
	data/scripts/gameobjects/character.js
	data/scripts/gameobjects/player.js
	data/scripts/gameobjects/room.js
	data/scripts/sessionhandler.js
	src/engine/util.js
max => Math.max