Various performance fixes with associated tables; updating the relevant specs where required.
Merge branch 'master' of github.com:Jellyfishboy/trado