Added Rubocop, Ruby-style linter, upgrade RSpec and fixed has_lock? to always return a boolean.
Merge pull request #25 from dblock/rubocop

Added Rubocop, upgraded RSpec and fixed has_lock?