Positron trapping and the creation of high-quality trap-based positron beams