completed server controller and model generator
adding the addTrailingSlash function so that the generators work correctly