Return 409 if pages is blank?

Doesn't make sense to call remove_pages unless you actually give pages
to remove.  blank? catches nil as well as empty array.
Documents controller tests

Functional tests for controllers.  Had to monkey patch a few classes
to remove cloudcrowd and sunspot remote calls.

Currently only testing the new 'return 409 if doc.pending?' functionality.