Fix for names bug

**This is a based on the `unit-testing` branch (otherwise tests don't work), and should probably have that branch checked and merged first.'**

Implements change to comment filter to use mysql_real_escape_string instead of addslashes, which is much more tolerant of specific conditions of the connection, encoding used etc.

* Fixes #20.
* Fixes #122.

## To Do

* [ ] Solve problem of MPs with multiple names entering a loop of doom back to the choice page.