added function literals and closures

Still will not create a new page when entered via the url with the edit
page, just 404's it. Something is probably wrong with the reg exp
validation