Jersey login

I'm not sure how I feel about this, it makes sense but I'm wondering if its a bit overkill. We should wire up json objects wherever we can but this might not be the perfect spot.