Moved card sorting logic to service
Moved auth to service. #149
Moved marker code to service #149