Added working Unit Testcases for Models. Added some functional and integration tests, not working yet. Added javascript for ajax.
Refactored of moved some files.