optimizations. Switch to PyCrypto support in pbkdf2 when possible.
Merge pull request #136 from michele-comitini/speed_triks1

optimizations. Switch to PyCrypto support in pbkdf2 when possible.
fixed issue 1587:Mongodb error on id
Merge ssh://github.com/web2py/web2py