Changed getResource signature + implemented customizable api-docs basePath (-u, -url) 

Fixes #94, #100

getResource() now returns an array and accepts an options array.
This makes it easier to tweak and send via a framework.