Moved all code into 'Z" namespace, simplified REST framework.