Merge pull request #2 from linuxswords/master

Authentication and a little refactoring and startKey/endKey Fix
reduce param should be default to false -> regular view fails

if it's a map-only view.