base: footer modularity improvement

* Removing styles on the <footer>. It's a generic element that may be
  used at more than one place, like <p> or <address>.
  http://www.whatwg.org/specs/web-apps/current-work/#the-footer-element

* Adding blocks in the footer template so one can reuse the content
  without having to keep the outter structure.

* Removing inline style.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
search: search form as files

* Splitting the `search_form` macro into files. All the blocks have been
  preserved.

* Deleting the `search_form` macro.

* NOTE if you were using the `search_form` macro you should replace it
  by `{% include "search/form/index.html %}`

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
records: acl hook added to record documents.

* Add new model to represent documents attached to one or more records.

* Add pre hook to the default ACL to check user rights over the records
  that the document belong to.

* New record config variable `RECORD_DOCUMENT_VIEWRESTR_POLICY` to
  specify the access policy over documents attached to one or more
  records.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
linkbacks: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
messages: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
oauth2server: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
pages: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
records: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
cloudconnector: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
access: file renaming

*Moves files to `admin/` directory

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
search: jinja base templates renaming

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
assets: less flavor of bootstrap

* Installing less and grunt-contrib-less.

* Adding the filters parameter on the assets.
  `{% css "foo.css", "00-bundle", "less" %}`

* Adding some configuration keys.
  LESS_BIN which must be pointing to lessc.
  CLEANCSS_BIN ditto for CleanCSS
  LESS_RUN_IN_DEBUG (default True) to enable or disable the less
  bundling in DEBUG. ASSETS_DEBUG must be also set to True for
  it to work.

* Renamed base.css to base.less and it includes the less files from
  Bootstrap and Font-Awesome.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
docs: fix of sphinx warnings.

* Fixing all the warnings given by sphinx during compilation.

* Fixing the PEP8, PyFlakes and PEP257 warnings of the touched files.

* Adding some intersphinx.

* Reading the theme from docs/requirements.txt.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
merger: syntax fix

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>