Cleanup webpages.cpp

* Removed #ifdef'ed out code.
* Added more function comment headers.