get API info from $_SERVER on failures; handle invalid JSON responses better; param parsing bugfix for psuedo objs via dot notation