Add bugtracker support to new faf

Including tests, number of small fixes and stuff required for bugtrackers to work.