add a folder called application/api

add an api folder ,add a function login without password,and modify the
code cleaner