Added login service task; amended API-access architecture

1) Login and session establishment task
2) More flexible API-access architecture