You can write a script, wich moves the vertecies of the terrain, and smoothes out the edges.
This way you can creates Terrains wich get aligned by code.