split getting a cube as a dict or list to helper functions, and made serialize a class method taking a container
WIP for controllers to consider swapping in cherrypy or new djangular