basic login pipes. Added jquery.cookie to get the csrf middleware token
added a simple logout but it'll have to be reworked to not use ajax