Replace some bash function by their python brother + unification of checks between Linux en Mac
Refactor function getting the name and os version.
Cleanup imports and loadavg refactor
Merge pull request #48 from CentralReport/feature-unification-commands

Unification of checks
Removed readme.md
Working on a new hierarchy for CentralReport

Refactoring all hierarchy to implement security in CentralReport
Fixed home directory for the CentralReport user on Debian
Added support for CentralReport user on Mac OS + Fixed some mistakes
Working on bash scripts with the new hierarchy
Updated bash docstring
Updated bash install scripts, LaunchDaemon plist for Mac OS and python lib imports.
Updated Mac OS daemon

Known bugs:
* An instance of "launchd" and "cfprefsd" are launched by _centralreport user
* CentralReport user is displayed in "System preferences" and Login window.

This is an experimental work.
Not tested on Debian/Ubuntu yet.
CentralReport user is now hidden on Mac OS.
Testing and fixing CentralReport on Debian (with the CR user)

Known problem: The config assistant can't be called by root.
Idea: chown -R /var/log/centralreport/ before each start to be sure that all logs files belong to the CentralReport user.
Updated centralreport bin script to work with new CR libraries path
Fixed "or", "and" in condition tests.

Tooltip: In Python, "&" is for the modulo, not the "and" keyword.
Same for "|" (pipe) : "or" is the only solution :)
Some minor fixes in bash functions
Improved CentralReport bin script. Now with many options and structured.
Added SIGTERM, SIGKILL and SIGINT POSIX signals

If CR daemon can receive the SIGTERM signal, it should be able to stop properly.
SIGKILL is used when the bin script is unable to quit CR daemon.
SIGINT is used in debug mode, when the user press CTRL+C
Updated init.d script and fixed debug mode

Debug mode now works fine! In a console, you can do: "centralreport debug" to launch CR in interactive mode. All outputs are displayed in the console. The CTRL+C is now correctly received by CR, and the process stops itself.
With this feature, you can test CentralReport in your favorite IDE or without installing CR on your host.