Refactored examples such that they can run independently as well as bundled together in docs/examples.html. Added links from monolithic version to individual example pages.