refactored deploy script + added one-command deploy script to gitignore
fixed a couple server bugs