Moving size hints into class and copied AwesomeWM's size hints apply function.