Change Spring Security from Milestone to Release Branch

The current version on master is referencing a milestone version of spring-security which pulls down snapshots of other releases causing build errors. Changed to spring security 3.1.4.RELEASE and explicitly set the version of spring-core needed. Also added ability to build the project through gradle.