I would just start looking at controllers on ebay. The low wattage ones are fairly small, but finding them much smaller is not likely, until you start looking at RC hobby type controllers, which tend to fail when hooked up to lower rpm hub motors.
Even the more medium size 6 fet controllers are easily mounted on bikes, small enough to hang or mount right under the back of the seat on almost any bike, with no problems at all. Good place, in the rain your ass keeps it dry as long as you have some kind of fender.
I'm curious why it has to be extremely small. There are controllers that are long and slim, that mount great on the seat post, or the other two bars on the frame. The one I know where to get it is 750w though, at E-Bikekit.com It comes with a display that can easily limit your power. But it might not be strictly legal, since you can also easily enable the full 750w.