Implement IT for PasteController. Reworked controller REST methods.