revise structure of cbmonitor.js module
revise structure of cbmonitor.js module

Change-Id: I6cd2f7ff1bc5c9af048845cf2338334ad1cc8a73
Reviewed-on: http://review.couchbase.org/23275
Reviewed-by: Ronnie Sun <06648be64f8fbc529d817d157ec32d385ea42f22@couchbase.com>
Tested-by: Pavel Paulau <dd88eded64e90046a680e3a6c0828ceb8fe8a0e7@gmail.com>

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