SPARK-2761 refactor #maybeSpill into Spillable

Moved `#maybeSpill` in ExternalSorter and EAOM into `Spillable`.
can u move this before org.apache.spark?  Take a look at the import ordering section: https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide