Added support for Devices.
Moved static methods to dedicated classes for Articles, Users and Devices.
fixed bug in upload http handler
merged with upstream