feat(internal resources) - add the capability to declare some resources internal

Internal resources can be used only for data manipulation using the datalayer.
True that it's not used in this PR, I've tried to merge all the changes we did in the fork so we can stay in sync with upstream easier.