Many may not be aware that Lotus Notes 8 has most of the Lotus Expeditor platform underneath it. This means you have a wide range of new architectural and programmability options in the client. There is a page in the Expeditor Info Center that lists the range of samples (with code) that can be referenced. The link I reference is the one for installing the sample into base Eclipse.
Lotus Expeditor platform can be considered a client side middle-ware platform because it houses a transaction container, a web container, and a portlet container. This means you can distribute JSP's and portlets that run off-line in the client. You can do other things like sync data for store and forward architectures with the synchronization services.