first pass at application socket open steps
Merge pull request #4 from bear/master

first pass at application socket open steps