Spring security restful authentication and Angularjs