moved the code into a source directory
added unit tests, testing the create action of the league controller