I have often wondered why no one makes a J bracket from stainless steel or aluminium. The upright long side of the J would slip up under the shingle (wood or asphalt) and be lag bolted to a rafter. The bottom of the J can stand off the roof several inches for good air flow and module fastening. The whole thing would be about 1.5 inches wide. Then its just a matter of bolting on connecting rails. They could make hinged J's for ease of wiring or adjustable frames. Something as simple as a J. For that matter, a continuos length of extruded aluminum with a J profile and drain holes ever so often along he "bottom" of the J. That would seem to work best on new roofs while the shorter 1.5 inch wide J would make retrofits a little easier. Lets see, there would have to a way to fasten the PV modules to the rails... Why not a low profile "C-clip" with a set bolt.
Wait, whats this?
http://www.clicksys-beam.com/ Curses! My plot to invent something that would allow me to rule the world has been foiled again. One day, I will invent something that everyone will want to buy and then! Then I will have all their money and they will have nothing but a trinket or a bob-it while I! I will rule the entire planet! Ha ha ha ha ha!