Fixed the Stack Overflow Exception on approving the jury and fixed the thesis mails. This closes the tickets 416934 and 417247.
Just changed Integer to int to keep the flag functions as they were.
Merge branch 'develop' of https://github.com/FenixEdu/fenix into fix/JuryStackOverflow

Conflicts:
	src/main/java/net/sourceforge/fenixedu/applicationTier/Servico/scientificCouncil/thesis/ApproveThesisProposal.java
	src/main/java/net/sourceforge/fenixedu/applicationTier/Servico/scientificCouncil/thesis/ThesisServiceWithMailNotification.java
fixed formatting issues...
Merge pull request #496 from gil-l/fix/JuryStackOverflow

Fix/jury stack overflow