Changed a lot, read comment

Post API is nearly finished, need to implement PUT. Main page will
automatically redirect to stream if logged in, login page if not, added
logout button functionality, getting all posts finished, getting a
authors posts finished, getting all posts for authenticated user
finised, getting a single post finished, updated stream page css,
"Cancel" button isn't working properly, stream page now orders from
newest to last post, post privacy added to stream post options, updated
the button to use bootstrap themes, changed register button, removed
some unused imports, changed the AJAX to use the id rather than classes