added karma and protractor tests framworks
refactored webservicefactory