Adding a way to configure a scope to factory function

This code with a test helps solve the issue #26 

The layout of the new configuration is added as a unit test, but you can see how it is below:


    {
        "testSelfProperty": {
            "enabled": true,
            "priority": 10,
            "module": {
                "name": "./fixtures/middleware/self",
                "method": "run",
                "self": true
            }
        }
    }
Ops, I´ll rebase that the commit 5700ceed9d11619fe4f2109ddf0fc1eda3893a9a fixes that :)