Moved resource related types to resources package.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>