Modified Security Config from XML to Java

Security is now configured with Java.
Also applied some changes to signin.html to adapt it to the new security
configuration.