Fully abstracted tokenization and linking function

Creation of Tokens and TokenLinks now abstracted into parameterized
functions which load data into the database.
Simplified general text processing into function