Significantly refactor luigi for cleanliness and speed