Newcastle United midfielder Isaac Hayden has joined Championship side Portsmouth on loan until the end of the season.