Untested Implementation of AP - and checking movement legality.
First pass at AP generation, not tested.

Moving various constants into their own database table.
Merge branch 'master' into ap

Conflicts:
	www/character_gen.php
AP system now running.
Fixed Problem with Other Characters Displaying.
Fixing a bug in AP where, at 0 ap, you never regenerated.