code cleanup of endoint.coffee
added sequences for responses. need more testing to ensure stability