Changed to use ufcommon.db.Manager

Just an alias on the server, but we will provide some client-side
compatibility
Added doc with thoughts about offline/client side code
Moved some code around