allow for API specific middleware.

middle ware can be defined for each api
instance
set default resource name of parent api.
remove console line in tests.

makes the parser fail