Implemented RenameFile in FS:USER
Implemented RenameDirectory in FS:USER
Log the cmd_buff arguments when citra comes across an unimplemented function
MemMap: Updated memory map to subtract base address instead of mask.

- More readable, a little less error prone.

Conflicts:
	src/core/mem_map.h
	src/core/mem_map_funcs.cpp
Change NULLs to nullptrs.
kernel: Make some functions const
kernel: Shorten GetCount
SVC: Implemented GetThreadId.

For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware.
Resolve doxycomment duplication debate

I believe putting comments in the headers has won by a good margin, with everyone other than me preferring it, so time to enshrine it.
Updated archive.cpp functions for proper error handling
Threads: Implemented a sequential thread id
Threads: Remove a redundant function.

Use the next_thread_id variable directly.
Merge pull request #248 from lioncash/kernel

Misc minor kernel-related changes.
Merge pull request #222 from archshift/renamexyz

Implemented RenameFile and RenameDirectory in FS:USER
Merge pull request #250 from Subv/cbranch_2

SVC: Implemented GetThreadId.
Merge pull request #252 from yuriks/patch-1

Resolve doxycomment duplication debate
Merge pull request #245 from rohit-n/null-nullptr

Change NULLs to nullptrs.
Make OpenDirectory fail if the directory doesn't exist

This is in line with what the hardware itself does.

It does this by splitting the initial directory opening into Directory.Open(), which will return false if a stat fails.
Then, Archive::OpenDirectory will return nullptr, and archive.cpp will return an error code .
armemu: Fix parenthesis warnings regarding bitwise ops
armemu: Fix SASX