Fix script issues, use enum for certificate level
Add capistrano. Change to 1.9.3 for local server