Get working with latest version of phpactiveresource; code cleanup, remove unnecessary files