Completed cli fencing.  There may be same code changes required for some functions in future though
Merge pull request #1409 from sthirugn/moreclifence

Completed cli fencing.  There may be same code changes required for some...