will give you a good start in learning how to organize your code for a web application. To further the push, there are several new plugins available to let you use other existing, best practices for things like session handling, logging, configuration, templating, etc.
The mailing list is also very supportive when ever anyone has any application structure questions.