Merge pull request #17 from theodi/master

pulling from master
Altering the certificate.lastest method to ensure that only published certificates are returned
Merge pull request #536 from Pavling/latest_certificate_method_tweaks

Tweaks to certificate.latest method