Ignore IDEA files.
Update pom.xml according to jenkins guidelines.
Fix rememberme stacktrace. Principal is UserDetails.
Ignore maven target/ dir.