Adding config arguments maxSession and maxInstances so registration at grid would be more flexible
Fixed detection of screen resolution from skin name.