more updates from primary mochiweb repo

The crypto compatibility changes in mochiweb_session.erl and
mochiweb_websocket.erl are necessary for older releases of Erlang not
supported in the primary mochiweb repo.