add mapnik_map_last_error function

I tried to implement a solution for #4.
mapnik_map_last_error returns the last error message. See new testcase.