Minor cleanup
Adds selenium for functional testing
First function tests