bug fix for SSL errors...

bug fix for SSL errors, added WP_Errors, added filters/hooks