Refactor definition into resource/provider pair

- Usage stays the same (calling yii_framework block)
- Remove unnecessary files (attribute, definition, library)
- Add check if path to symlink exists. Try to mkdir if not.