Adds configuration with a properties file

Also:
* Moves Spring configuration to Java Config (only xml required now is
  web.xml)
* Added gitignore