rearanged view and controller factories in dispatcher optimized views
starting adding support for multiple APIs
added doctrine parts