I know this isn't very DIY, but it's probably worth knowing it's an option: I simply hired someone who works at a book publishing company to edit and typeset the book for me on the side. The person I hired does it for a living and is incredibly good at it. Let's just say it's not the most lucrative career choice, so I had the entire book (198 pages) edited and typeset by a professional for about $400.
This also had the added benefit of letting me write and get feedback from early readers using google docs, which was incredibly important.
I ended up paying her a pretty big bonus on top of that (as we pre-sold $110,000 worth and since publishing a couple days ago have brought in another $2,000 - all straight profit since we're ebook only so far and not on Amazon) but for my time and sanity it was very, very worth it.