Macros shared examples

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