Fixed form for managing individual repositories.

Added a function to format a number according to a format string, Also one
to validate a format string (Which does not work very well right now).

Added a access check hook. I don't know if there is a shortcut for access hooks
instead of module_invoke. It's very probable drupal may have one.