Implement :force option in the app generator and the model generator

Closes #1712