Added util classses which implement jersey auth endpoints and security

filters for users of jerseys. Supporting classes are abstracted wherever
possible.
Does not consume anything, but I think logout, as a function which "updates a state", should be a post.