Merging changes from madeofpeople, and moving resources into repository
Resources are no longer a submodule, at least for now
Merged from master
Started coding standards fixes
&& and || replacements for all
Ran a REGEX to convert ALL camelcase to camel_case syntax
Global replacement of <? with <?php to conform with coding standards
Fixed coding standard:  Construct names should be separated from opening parentheses by a single space
Changed foreach( to foreach (
Changed all null to NULL
Moved opening brackets to next line
Re-indented all files
All else if changed to elseif
Uppercased all true and false
Added space at beginning of single line qoute
Added whitespace around single !
Fixed extra space in all XPaths caused by Kohana format cleanup regex
Cleaning, to make sure lattice works smoothly
Removed dead wood
Revert "changed default user type to client"

This reverts commit 11a370dfd8622553352797a254afd53a2ce80016, which introduces an error when creating a new user, because it was not bundled with any logic to actually create the 'client' user role.

Additionally, the default role of 'admin' is used to authenticate users to the cms.  The original commit did not make any chances that would have allowed a user of type 'client' to have access to the cms.