bugfix: specs , service refactor, removing need to use array syntax to access resolved data

### CHANGE SUMMARY
* using a service now for creating ```nsStateResolver``` instances
* fix specs
* add a spec to ensure resolved values are passed to next resolver
* adding a simple example