Add "generate" and "preview" rake tasks