Implemented routing for the playground.

Now the playground page of the website handles routing to navigate through samples, which means that each sample has its own URL, and loading this URL will show the sample. History is supported as well.

flatiron/director (https://github.com/flatiron/director) is used to handle this routing.

I also took the opportunity to do a bit of code re-formatting.