Major rewrite. Now uses http verbs, and takes authentication details as
parameter.

At the current stage, authentication details are used for statistical
analysis. Namely normalizing training data, such that it can be shared
among devices.