Fixed bash support, added PHP support.
Added separate class for process management. Fixed the exit status bug.