Moved first week day handling to Factory

First week day handling was in month class, and wasn't
usable in Calendar class. I moved it to factory to avoid
code duplication