Kinda forgot to commit, but: fixed ticket refresh being funky when used multiple times, reverted to old style plain text replies, removed debug json from ticket display view, added constants for a bunch of stuff, minor refactorings