Updated new selection functions and added wrap

The selection functions were changed based on feedback and were formatted to match the current coding style.

A wrap feature was also added that will find the first blank line before and after a selection (or cursor, if no selection) and format that range based on the margin (ruler) setting.

The wrap-to-paragraph function was updated to reject a blank line as part of the paragraph, and a column parameter was added to the "moveTo" and "selectTo" calls so that "NaN" isn't returned.