Band-aid to address Common.credentials inconsistency issues.

fixes #139
Updated some spacing and indentions (mixed tabs and spaces)
Updated both view files to use UNIX line endings instead of DOS
Sometimes Common.credentials is an object and sometimes a string. I updated a few location shwere this was causing a problem but this is simply a band-aid for now. The overall design of this feature needs to be re-worked to be reliable and consistent. So this partially fixes issues #139.