refactoring cbtop main module
refactoring cbtop main module

Change-Id: Ifb60ca3ab76078d362389a9f7655ac01ce767b3f
Reviewed-on: http://review.couchbase.org/24106
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Pavel Paulau <dd88eded64e90046a680e3a6c0828ceb8fe8a0e7@gmail.com>

mikewied/cbagent,vmx/cbagent,ronniedada/litmus,couchbase/cbagent,couchbase/cbmonitor,couchbase/cbmonitor,pavel-paulau/cbagent,ronniedada/litmus