Updated GateResources. Sort of working
Working GateResource. Needs testing.

Also modified Jape rules a little. Still needs improvement.