My husband decided to replace the basement windows in our house and was faced with a number of the same challenges you mention. You've likely already figured something out as the post is older but I thought you might be interested in a video series on installing replacement windows that I found...