Increment record layer sequence number when retransmitting DTLS packets (as per the RFC). Send the Finished message in the next epoch, but don't commit to using the next epoch until the other end indicates that the CCS message has been received.

Tested against an OpenSSL server, this change makes it a bit happier.
Merge branch 'master' of git://github.com/JonasNorling/cyassl into JonasNorling-master
updated the formatting from the patch