Add testing framework

1. add intern for testing, create some functional tests, setup selenium
2. Fix bug where user couldn't search images