UKIP has its second elected MP at Westminster after Mark Reckless won the Rochester and Strood by-election.