Sort function prototypes and group/sort entries within the functions array.

ok beck@
Sort and group includes. We also do not need to include openssl/evp.h more
than once.

ok beck@