A token-based, RESTful authentication library for Spring Security