extracted AppSummaryPresenter

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
extracted dependency locator into a let

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
extracted be_an_api_error matcher

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
removed logger dependency from AppSummariesController

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
introduced identity context to keep track of user/roles

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
extracted identity context provider

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
namespaced identity context related objects

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
extracted dependency locator helpers in test

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
moved unneeded spec helper methods back into sinatra

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
added authentication check

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
made logged_in? protected

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>
successfully authorize clients in rails request specs default

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>