MPs on all sides of the House of Commons paid tribute to the departing PM, traded jokes and shared anecdotes.