Begin documentation, add method of calling commands internally.

Documentation is incomplete; will update shortly. Commands can now
have the type 'internal', which allows them to be called from
elsewhere in the code. This will execute the command, bypassing
is_admin even if the command is admin-only.