Trampolining

applyFunction now decrements gas and trampolines when gas runs out
Added in case for trampoline exception to ensure we don't get failure
results from tramolines