Macros shared examples

Create macros and shared examples for rspec.  Use capybara for feature testing.