Lots of guts.  Decided not to go with REST Handler as Cowboy's structure is a little weird