Merge pull request #1 from evert/master

Slim is now a composer dependency.
Merge pull request #2 from evert/master

pretending we have mcrypt
Added lib/Model/Location

Added the file structure for the model and get a quick hello from the
controller.
Making it make sense

Changed the model class to have functions that accept arguments and
return values!  Currently just returning dummy sample data.

Not sure if I am grabbing the 'amenity' query param correctly or not.
Would need to at least add some handling for bogus foo=bar in the query
string.
Define some global path vars

Defined the site path and config path global vars.   The config path is
one level above the site root for security.  That is were the
config.php is found that contains the DB credentials.
Return some data from the DB.

The getLocationById function connects to the DB, grabs all the data
about a certain location and stores the data in a bunch of vars.  So
far, just returns the name of the place.

TODO: Create a location object that contains all the info and return
that.
Rename var to identify JSON content
Format and add some additional values to getLocationInfo method

Made a couple useful data like shortname and urlname.  Add all the
amenity fields and values.  Find all the applicable amenities and add
to object as array.

Not sure if I need to include the whole amenity list, but it was
already in the object and didn't feel need to remove.

QUESTION: Is this a good way to pass this additional data around - ie.
the array?
Remove superfluous library includes.

I don't need these.
Model should not format result.

This is considered a presentation on concern.  Just return the useful
object.
Throw a more useful error

die with "unable to connect" isn't very useful.
Remove a redundant else
Remove another redundant else and connection close

Don't need else because exception (now throwing a useful error) will
stop the script.  Also removed $mysqli->close();
Rename var and stop treating like a string.

Printing out the object
beautification
Moving config

Making life easier for comrades.
Merge remote-tracking branch 'upstream/master'
Downgrading to PHP 5.3