VPS API is now fully implemented. Also some code cleanup.