fixed issue 1605:mongodb select fails with long limitby, thanks Alan
fixed issue 1604:After web2py Upgrade, int status codes are no longer respected, thanks cfhowes