fix page detection in the router class
reshuffle some code. move input_defs into there own file. combine
base handlers into framework,php