Remove serizlization issues on complex environments

Please take a look an approach to avoid serialization issues when working with complex contexts including mink, database connections and other resources which can not be serialized and deserialized properly.