Add core module with Point class

Point will make both server and client code nicer, accessing
player.position.x instead of player.position[0].