Added constructor parameter for ApartmentState

Added support for single threaded apartments using ApartmentState.STA