Fix the bug with multiple endpoints configured with basic auth

Auth filter been setting up in global context and affected all routes
defined within the application.
Add custom auth filter

In some cases we need some spcial authentication logic.
CustomAuthenticationFilter is good extention point for this.
Fix concurrency bug in MemoryCommandStateProvider
Merge pull request #5 from JustApplications/master

Various bugs fixed