Added some backend functions and tests
Merge branch 'frontend' of github.com:Kovath/Singlesmingles into dev
Merge branch 'dev' of https://github.com/Kovath/Singlesmingles into frontend