add option to set dev or prod api server
some cleanup
move methods inside class
update some gems
add gitignore
add method to set key