Bug 1060345: Create a way of dynamically inflating the correct tab layout (r=lucasr)