Diff tasks see trello.

Login with redirect create for create blog url. If not logged in user is redirected to /login/controller/method. In javascript on login the /login/ is replaced with / to redirect the user to the occurred page. This can be used in the whole project? Besides that the index.js is refactored to standard $.ajax function. this way we have more control