added clearError method
save session values in memory
added getStage method to controller and request and response filter can now return callables