Small bugfixes

I found two small bugs when I set up the server for a session. 

1. The square and cube question specs failed due to float rounding errors
2. the original html_escape method did not work, so I changed it to use standard Haml escaping.