Added the ability to specify an exit code.
Made Eyemouth application exit with exit code from Core.