Most of the changes have to do with template rendering and preregistering your variables for use in the templates. Cellarius wrote a really good article that you may be interested in -
[vB4] Rendering templates and registering variables - a short guide I'd also suggest downloading a couple modifications that were made for 3.x and upgraded to 4.x and comparing them to see what was done.