Make Transaction models and fix restlib data/param handling

Also:
Implement the ability to queue params and data as well as data