Some fixes for previous commits and add opportunity to use getResourceModel method instead static model variable.
Some fixes for previous commits and add opportunity to use getResourceModel method instead static model variable.

troyanskiy/ng2-resource-rest,troyanskiy/ng2-resource-rest