Improved FirePHP logging and handling of responses, including many bug fixes