Splitting the FileTokenFactory into two parts.

FileTokenFactory does the basic translation
DatabaseFileTokenFactory adds a few extra functions that depend on knowing which daemon the database module resides at.