Assorted bug fixes in `azure mobile`