Body parser extracted from ThunkJS' sources