Feature/applications over samples

This pull request primarily adds a plot for applications over samples. But secondarily it also refactors the /applications page to use server side generated plots.

The strategy of creating server side generated plots is a bit slower than client side, and doesn't scale as well. But the gain in ease of working with server side Python rather than client side asynchronous JavaScript is tremendous.

This is the before picture (using NVD3 pie chart):

![Ska rmavbild 2013-03-19 kl 11 46 32](https://f.cloud.github.com/assets/668803/275255/ed220468-9082-11e2-8320-43b0ea7c37f0.png)

and this is the after picture (using matplotlib pie chart):

![Ska rmavbild 2013-03-19 kl 11 47 03](https://f.cloud.github.com/assets/668803/275258/05f1a098-9083-11e2-9281-170aaa565d8a.png)