Started refactoring server side.
Merge branch 'master' of https://github.com/gda08/MasterThesis.git