Title: Test for factories added

Description: Added file 'factories-test.js' for factory-describes. All factory tests goes here. Right now, only contains one 'It'. More to come.
Alert: Right now, the file clientTest.js still exists, which is redundant, needs a whole lot of refactoring, was made on old controllers, not valid no more.

Commit: Thomas
Title: getAlDocuments testet

Description: getDocument funtion properly testet. All green.
Commit: Thomas
Title: all functions for docFactory testet

Description: Bottom describe x'ed out right now. All green.
Commit: Thomas
Title: all functions for cacheFactory testet

Description: All green.
Importrant: Right now, I can't access the 2 lists in cacheFactory, so I've testet functions depending on each other, which isn't the most prettiest thing in the world...

Commit: Thomas
Title: Refactored factories

Description: All green still.

Commit: Thomas
Merge branch 'develop' into feature/factories/jasmine
Title: Added test for editFactory

Description: All green.
Important: Test for function editDelete not working poperly. It ALWAYS returns true... It removes from the hashMap in factory though.

Commit: Thomas
Title: Added last test for editFactory

Description: All green. The last 'it' added for editFactory test. Also made some refactoring.

Commit: Thomas
Merge branch 'develop' into feature/factories/jasmine
Title: Test branch merged to develop

Description: All green after merge. There has been minor changes in factories.js since test began, so there are a few functions, not being tested.

Commit: Thomas