Fix encode64s method.
Let projects know about private keys.
Clean up some code.
Add private_key to projects DSL.