Added initial support for getting category attributes. Loosely hooked into code.