Improve batch mechanism - 3rd try

Diff from 2nd one:
 . Integrated Andrew and Tyler's suggestion on batchIn script and function prototypes declaration in headers;
 . Fix a CMake Error on RHEL6 by preventing it to check the sanity of CXX compiler for the oBIX project
Are we saying our implementation of history batch commands breaks the oBIX spec?