Merge pull request #48 from mpeuster/master

Added basic resource model API.