Subclassed uiscrollview, moved logic.
More refactoring.