adding a setup script and fixing the devise set/config