these updates are getting closer to authorization.  the main thing that
happened here is that the columns for the permissions have been
eliminated.  now there is one column called 'type_id' which is one of
publish/subscribe/call/register/start/end/admin. There is also a new
column called 'allow' which tells whether the permission is being
granted or denied.  These columns will be used to see if permission has
been granted for a specific activity for a specific topic for a specific
role.  When checking for permission, I will look bottom up, ie.
com.db.query topic is checked, then
com.db is checked, then
com is checked.  The first one that yields the type_id is used, and the
allow boolean tells if it is a grant or a revoke.  On the other side
when I start granting permissions from the authorizesession, I will look
top down.  What I mean is for example, say I want to grant subscribe to
com.db.watch.table, I would check in this order:
com, then
com.db, then
com.db.watch, and finally
com.db.watch.table for the admin type_id.  The first hit will tell me if
I have the authority to grant the permission on the topic to someone
else.