Starting to refactor light curve creation. Moving more onto the client side and dramatic speed improvements.