Fixed build order, move tests to tools tier.
Added QJson pkg config link
Switch all configs to xulrunner base