Finalize the response before returning to rack
Merge pull request #1 from fredsherbet/master

Rack API needs finalise to return correct structure