Implement API's Ping method

Closes #19