add /api/serverinfo/ and various fixes