add code to get doctype via jax-rs

now  document.docType available at:
    http://<baseUrl>/doc/<docId>/doctype
now doctype selected in edit form
refactor: access to lazy item fields via jx-rs moved to RestStorage prototype
now search for visible only in 'list' state

search form html moved: index->part/search
small fix in 'shared' factory
add code to get document.description via jax-rs
rewrite 'select' in edit-form as ngSelect directive

see
https://docs.angularjs.org/api/ng/directive/select
for examples
add group by statement to docType directive

Для иерархического постороения в 'select' for docType in edit-form
добавлена инструкция group by (see edit.html)
для этих же целей удалены инструкции @JsonIgnore
в модели DocumentType

нужны тесты модели.
fix items arrays filling while list->edit switch-over

TODO: move refresh logic from refreshItemsList to getItemList(nextPage?)
for cleanup/splice arrays of items, relying on range.direction value
see factory.js