Updated to cowboy 1.0.0 and use a different json lib