Fix redirects and add salt to sql

- Fix redirects between login and index
- Add SQL for salt in ipp_users table
- Add sharedoc.php to .gitigonre to prevent pushing it to Github and
keep db credentials secret