bump copyright to 2014
raise max buffer and max cert length

also only allocate space for the certificate when it's
first written.

fixes #16
don't try to read past buffer end when copying data for sending