Added api lib to contact server.

Completed login view.