Applied code conventions to subsites inc file #3887

https://drupal.org/coding-standards
Added subsite_domains field #3887

Added to all vsite types.  Couldn't export as usual.  Update hook makes sure it gets added.
Limit subsite_domains field to department #3887

Quick change of heart.  Instead of altering the form and maybe loading the wrong values, lets only create fields and instances for configured subsite parents (default: department)
Refactored domain form #3887

Instead of having three conditions and putting the form three tabs deep, bail out early if the conditions aren't met.
Updated form for subsite domains #3887

Nothing tricky so far.  Figuring out the UI was the hard part.

Three cases:
  - Site has a parent, user has change vsite domain access
  - Site has a parent
  - Site has no parent, but user has change viste domain access

It was the first case that slowed me down.  I started with a select full of possible domains.  One option was custom.  When custom was selected, the custom domain form we know and love would appear.  Getting #states right took a while, but even then it felt clunky.

Instead, any time a user has access to change the vsite domain, they get the textfield we all know.  Users get the dropdown if and only if their parent site offers domains and the user does not have domain access.

One other UI change was that instead of none or blank, I'm using the site's purl_base_domain to represent that there's no custom domain.  This seems clearer.

Now that that's squared away I just have to process the new domains.  Most of the same logic should apply, except for that purl_base_domain meaning no domain at all.
Vsite domain works with select form #3887

When the form used a text field $form_state['values'] included the value entered there.  When I switched to a select, the value was absent from values, but it was input.  I tried just using that in the submit function.  That wasn't quite enough.  Turns out there was another submit function after mine, provided by spaces.  It was saving the values and kept getting a blank because of the values/inputs problem.  Copying from input into value worked.  I'm still not sure why this was necessary...
Tidied up domain form.  No more shared/owned for subsite domains #3887
Removed excessive description.  #3887
Merge branch 'SCHOLAR-3.x' into 3887-subsite_domains

Conflicts:
	openscholar/modules/vsite/vsite.install
Merge pull request #4085 from openscholar/3887-subsite_domains

3887 subsite domains