Uploading a version after refeactoring it. The project is now divided in different packages, the logic was separated and the useless code was deleted. Connections to the server were also centralized.
Merge pull request #21 from ibalejandro/master

New version after refactoring it.