Fixed multi-tenancy issue for stats.  Made stats and app singletons actually save to the newly named _SingletonTbl.  This makes retrieval of stats via api more like other classes without much gymnastics. All that is requried for multi-tenant support on api endpoints is a middleware function to identify the proper tenant.
Fixed client js with respect to hard-coded API endpoints and those with the {id} variable somewhere in the middle.