L4port

merge genpages changes to my technic branch, planning on adding stuff to it once I have a greater understanding of php and larval.