R test

this cleans up automated testing and gives the user a way to watch the testing happen by visiting "/?test=1"

![screenshot 2014-07-01 12 20 13](https://cloud.githubusercontent.com/assets/93231/3446084/bad34b70-013d-11e4-8473-915158ba545c.png)