Pile namespace so add from clipboard works

Was getting errors finding the Pile in the view. Moved loading the $contents to the controller, to simplify view and as a better home for the necessary 'use'.