Fixed infinite redirect loop and added script to add vendors

To run the script, make sure you have execute permissions on the file
before executing ./addVendor.sh

It will prompt you for your user id. This will most likely be 1 unless
someone else has logged into your application via Facebook. When the
script finishes, you should now be a vendor. Switching back to a
customer is not implemented yet.