Portland man accused of fatal train stabbing has outburst in court