Mostly finished the rest api controller along with a modification to the gas model to help a bit.