Fundamentals of the update system in place

The client will attempt to load files from a local cache, and if not
form a remote location. This is not implemented so will throw an
exception. The development version will update the local cache every
time from the build directory.

Also added the Core.dll project which will contain the actual game code.
This is copied to the local cache and then the EngineCore type is
launched from it.
DirectX initialized and more robust updater

The EngineCore will now initialize the graphics subsystem which will
clear the device to cornflower blue, and there is the ability to enter
fullscreen mode if desired.

Added extra error handling to the client to catch any errors with the
initial connection
Massively improved the updater

Simplified the register and login methods, so a register is also a
login.

When the game window is launched the updater is hidden. When it exits,
the updater is restored.

Added a placeholder logo, version selector and changed the blocking
message boxes to a text string below the logo
Added depth and stencil buffers

Added the creation of the projection and related matrices, and the
creation of the depth and stencil buffers. All the DirectX code has been
moved to the GraphicsCore and out if the EngineCore
Connection to initial Tile server active

A SimulationServerController is now in place that will accept simulation
servers to the metaverse. The login code was tweaked so that when a use
logs in and ip address to a tile server is provided.

The game core now has a struct for launch parameters, and connects to a
the simulation server using UDP.

This is a rough, but workable outline and sufficient for this stage of
development.
Rebase commit

Pull in changes from the metaverse
Merge remote-tracking branch 'origin/master' into Basic-World

Conflicts:
	Kingdoms/Metaverse/Program.cs
Sim Server management moved to a gateway

Updated the simulation server controller in the metaverse to use the new
gateway system in preparation for fleshing out the actual simulation
server.
Sim Server Beginnings

Begun creation of the sim server. Able to connect to the metaverse, and
be assigned a tile to then load and simulate
Character Profiles are stored and retrieved

General tidy of some minor files

Added a character profile class to store location about a users avatar.
This is retrieved from the database with other user data upon login. If
not present it is initialised to null.

The Authentication gateway now selects the appropiate simulation server
based on the profiles last known tile, and passes the profile to that
server.

The simulation server will accept and store the profile for the incoming
connection
Set up client encryption

Modified the login process to pass a key and init vector to both the
simulation server and game client. This pre-shared key is used for
security, as well as a randomly assigned GUID to identify the session.
Bug fixes

Fixed a lot of bugs preventing connection between the metaverse and the
simulation server.
*Changed the default port numbers to prevent collisions with other
software
*Added try/catch block to connection to detect client crashes
*Made Vector3 serializable and added a ToString method
*Stopped GenericGateway disposing itself twice
*Able to create tile from the console
*Moved client networking into its own core
Loading tiles from storage

Modified the connection code to handle much larger data transfers, after
much debugging.

The tilemanager is capable of loading and persisting tiles to s3 backed
storage. The simulation gateway is now capable of accepting load and
save requests and passing them on.

The simulation server can send a load request and recieve the returned
tile. No provision has yet been made for saving any changes it makes to
the tile back to storage.
Bug fixes for client encryption

Check the client can connect to the simulation server. Fixed a few bugs
involved in changing the message size from a short to an int, and
corrected a mistake in the simulationservergateway code.
Terrain and Resource Manager

Basic Terrain and reource manager created, still requires testing.
Merge remote-tracking branch 'origin/Basic-World'

Conflicts:
	Kingdoms/Client/MainWindow.xaml.cs
	Kingdoms/Common/Connection.cs
	Kingdoms/Common/GameLaunchParameters.cs
	Kingdoms/Core/EngineCore.cs
	Kingdoms/Core/GraphicsCore.cs
	Kingdoms/Metaverse/Gateways/GenericGateway.cs
	Kingdoms/Metaverse/Gateways/SimulationServerGateway.cs
	Kingdoms/Metaverse/Modules/SimulationServer/TileManagement.cs
	Kingdoms/Metaverse/Program.cs
	Kingdoms/SimulationServer/Program.cs