rename 'state' local as 'default'.
support old Pry#hooks= API (argument as a Hash) on Pry::Config.