register actions to table cells on the fly

Change-Id: If4c584bd772cfc2e8f30756a3ac3184c4c79629c
Reviewed-on: http://review.couchbase.org/24720
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>
Tested-by: Ronnie Sun <ronnie@couchbase.com>