add castsocket protocol files
fix bug with trailing slash after /app/
add first draft of bonjour and castsocket for v2 support