Motherwell have agreed a two-year deal with Ross County midfielder Paul Lawson who will join the club on June 1 when his current deal expires.