What factors affect soil hydration and crop growth time? What is the most efficient layout of dirt and water to grow crops?
Like Brant said, tilled soil will stay tilled if it has a water tile four blocks or less away. Even though a large field of crops would result in the quickest growth time, this is not necessarily the most efficient method of farming as you would need to crouch to avoid the trampling of crops, and it's not easy to access each tile.
There is a thread on the Minecraft Forums with various farm designs - here are two of them (credit to Hans Lemurson of the forums):
The tilled blocks are raised so you won't trample crops as you collect them, and the water tile in the middle ensures that all the crops are exposed to the water. The nice thing about this design is that you can elongate the design simply by repeating the middle row (the one with water in it). The walls of the farm serve a double purpose - keeping animals out and serving as a back wall so that harvest crops bounce back to you.
(Oh, and the chest at the door is good for storing excess seeds or wheat.)
This is a spiralled variation of the farm. The crops are one continuous "shelf", so can hold the mouse button and move as you are planting or harvesting.
To be hydrated, tilled soil needs have water up to four blocks away, either on the same level as the soil or one level above it. This means a 9x9 field with a single block of water in the middle will be fully hydrated.
Growth time is a little bit more complicated. The Minecraft wiki has more information including the formula the game uses to determine growth rate, but it would seem that the quickest-growing crops are those surrounded by crops on either two sides. In other words, plant in straight lines. Avoid large fields and L shapes. If using large fields then alternate crops every row.