Miscelaneous refactoring aiming scriptless jsps