Merge pull request #38 from bkng/master

getQuestions and getSolutions stack functional/lightly tested
fixed style for back-end code. Refactored code. Handled bad inputs and errors. Basically changed everything, I'm a boss.
fixed code review changes
Merge pull request #39 from dcs24/master

Tidy up back-end code
Updated UML diagrams (issue 30)