added collection and resource to handle REST api's better
request type detected

this commit is a mess. Got back to working on it after quite some time so i left all of the shit i did where it
was. As i continue developing i'll clean it out
POST/PUT data is stored
correct collection is called
added http status code handling. Collections can set status code too