Added @Component to all DaoImpl, Service, and Resource. Now, only need to register Resource in the DashAppSetup.java

Also, removed mysql jar from WAR by adding a scope provided in the pom.xml
Actually added the provided scope in pom.xml
Added fix for memory leak.