Rework traits support. Also support getting traits out of the client via phobos