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

Based on dirname code.  Includes RSpec tests and docs.
Merge pull request #368 from rfugina/basename

Basename implementation