Improve metaServer.sh
Move MessageIterator to commons project