[webui] fix test cases

- take out some more caching (for now, to be readded in the models where
  it's sane)
- fix flags validation
- redo the travis split
- use truncation for database cleaner

(and due to rubymine insisting replace "" with '' where no escaping is
necessary)
[api] retire webui/relationships controller