fixes #162 - adds getToken on ResourceController for convenience