add a renderer for filemanager forms

Based on the upstream work that adds Bootstrap 2.3 classes
to the renderers.

There's a lot of code here for fairly small changes, but the way
this renderer is set up is kinda weird so I'm not sure it's
possible to do better. There's a couple of public methods that
use meta-programming to grab all the private methods on the class
that match a naming convention and process them. Possibly it can
be done more cleanly but I'd need to think about it a fair bit
more than I should have to.

Also, as a consequence of the way the templates are rewritten by
javascript I can't directly add the .form-control class so that's
being done via less.
use grunt-text-replace to flip image names for rtl

Move the last of the RTL out of the core files.

It also lets me escape some weird interaction where
javascript was adding classnames to change the image but the old
RTL solution was adding .dir-rtl and messing up the specificity.
Merge pull request #163 from ds125v/rtl_image_flipper

use grunt sed to flip image names for rtl
docs indentation tweak
remove unused code from prototype
add png for req(uired) and adv(anced) asterisks

Just quickly used 'color to alpha' on the original in GIMP on
the original GIF images to remove white background halo.
Merge pull request #166 from jobyh/grunt-tweaks

Grunt tweaks
Merge pull request #169 from ds125v/req_png

add png for req(uired) and adv(anced) asterisks
Merge #164
Regenerated css
reattach draganddrop-status to navbar

There's some fancy javascript behind the scenes here to make it
look like this is popping out from the top of the screen, which
I've changed to target the navbar instead.

The whole thing seems a bit unnecessary to me. But maybe I'm just
overreacting.
split out bits of core for badges, tags, enrolment

Also moved a couple of things to do with forms and tables,
and deleted some unecessary table related things.
Add css flipping to the grunt workflow

Did some tidying up of the calls, though I'm not really sure if
what I've done is the best way forward.

Mostly this involved introducing a 'compile' task that gets called
from elsewhere.
Merge pull request #170 from ds125v/dnd_status

reattach draganddrop-status to navbar
Merge #171
Merge #171
Merge #172