Fixes API compatibility issues with new date picker, moves moment to it's own folder since it might be used for other things.