Factories, tests

Added folder for factories, and modified instructor servlet to use the
factory and added test.

Everyone download the word file on D2L to know how to do that tests!!!!