Upgrade AskSage error reporting and portability

In particular pass location of curl (used in sage call) from site.conf since the location can be different on different machines.
Create error messages when debug is set to 1