File structure re-organised so that PHP files are outside of the web directory

Basic API images have been added for working prep.

Signed-off-by: Matthew Rayner <matt@mattrayner.co.uk>