Created Login Module. Changed network manager class to handle post json
queries to work with rails.