Added basename() based on Ruby's File.basename

Based on dirname code.  Includes RSpec tests and docs.