Added Spring security for securing REST APIs.