Rewrite to accomodate many new things

Recoded structure,
Added simple xhr response error handling (401,404,500,...) via promises,
Added several new options (prefix, urls, loadFromSearch, extraAnnotationData),
Added custom url id replacement (/annotation/:id) capability