Wales international goalkeeper Wayne Hennessey leaves Burnley and signs two-year contract with Nottingham Forest.