Code clean up
Fix bug where value in loop could be null
Use hilib/token instead of @token
Add tokenType

The default tokenType is SimpleAuth, but for eLaborate we had to add a
Federated. We can imagine other types are needed, so we added a
tokenType.
Add wordwrap option and activate/deactivate save button
Fix bug where options.start would not lead to correct pagenumber