Added rest support for items. All the rest parts are now complete, and somewhat tested. Did some minor changes to various parts of the backend that was necissary to get the REST to work good.