Fix class attribute handling.
Add very basic resource requesting.