Initial version of real code
Updated params and made it rails3 and 4 friendler
Change sandbox url
merge conflict