Update salt/modules/mongodb.py

Rectification of 'TypeError: port must be an instance of int' if using specified settings for Mongo.
Make PPA handling in apt-repo more robust

Take in the changes provided by ahammond and move them to the apt.py
module out of the pkgrepo state itself.

I've also included some changes that should make get_repo a bit
better and updates to better handle PPA style formatted names
in .absent calls

To avoid some odditiies any repo changes (add, delete, mod) will
do an explicit db_refresh()
Added -r requirements.txt to dev_requirements.txt.

When calling: `pip -r dev_requirements.txt` the `requirements.txt` file
will automatically be included as well.
Add error checking to major pieces of apt.py module
Remove trailing whitespace
Check for errors in dpkg.py

Also fix it so that this module will work AT ALL.  cmd.run returns a
dict, which does not support splitlines(), so I think this was
completely broken, and people just don't use it so we didn't know.
Fix pep8 line length
Add more error-checking to apt.py
Fix syntax error (whoops)
Split Python 2.6/2.7 requirements.
User cmd.run_all (I misread cmd.run)

Also, because of my misreading of cmd.run, my previous comment about
dpkg.py not working was incorrect.
Merge pull request #4108 from basepi/aptfix3993

Check for errors in apt.py and dpkg.py, fixes #3993
import grp in try

Windows has no 'grp' module
fix import os

somehow I changed import os to import ps

Fixed it
Merge pull request #4087 from rca/add_requirements_to_dev_requirements

Added -r requirements.txt to dev_requirements.txt.
Merge pull request #4113 from UtahDave/fix_win_cmd

Windows has no 'grp' module. Put import grp in try statement
basic support for reboot, shutdown, halt, etc.

 - return data formatting needs some attention
Merge pull request #4115 from cedwards/system

basic support for reboot, shutdown, halt, etc.
updated PKGBUILD to 0.13.2 with minor fixes

 - removed rc.d scripts (master,minion,syndic)
 - s/python-m2crypto/python2-m2crypto/
updated to match stable PKGBUILD

 - removed rc.d scripts
 - minor cleanup