Merge pull request #408 from kylejohnson/master

Move API to under web dir
Add the web/api folder to cmake
Fix wrong install path for core.php and database.php
Update zmtrigger.pl.in

zmtrigger.pl should not open serial port #1 by default. There could be situations where other hardware etc. would be attached to the port that is not used by zoneminder. 

Better if this can be commented out by default and if a user needs serial access, he can enable it by removing the comment.

This line also gives an permissions error when running on Ubuntu which prevents zmtrigger to start. That error can probably be fixed by adding the zm user permission to the serial port. But the main issue is that if the program does not need access to the port, it should not open it.
Merge pull request #411 from martin67/patch-1

Don't open /dev/ttyS0 by default in zmtrigger.pl.in
Merge pull request #409 from ZoneMinder/api_cmake

Add the web/api folder to cmake
Merge pull request #413 from kylejohnson/master

Added a doc for contributing to the project
remove uses of dbEscape
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
use PDO style
Merge pull request #416 from kylejohnson/master

Added an FAQ for AlarmCheckMethod
Update zm_jpeg.cpp

Change 0 to FALSE in order to avoid compiling error on Debian Wheezy:

[ 31%] Building CXX object src/CMakeFiles/zm.dir/zm_image.cpp.o
/opt/ZoneMinder/src/zm_image.cpp: In member function ‘bool Image::WriteJpeg(const char*, int) const’:
/opt/ZoneMinder/src/zm_image.cpp:863:42: error: cannot convert ‘bool’ to ‘boolean’ for argument ‘3’ to ‘void jpeg_set_quality(j_compress_ptr, int, boolean)’
/opt/ZoneMinder/src/zm_image.cpp: In member function ‘bool Image::EncodeJpeg(JOCTET*, int*, int) const’:
/opt/ZoneMinder/src/zm_image.cpp:1096:42: error: cannot convert ‘bool’ to ‘boolean’ for argument ‘3’ to ‘void jpeg_set_quality(j_compress_ptr, int, boolean)’
make[2]: *** [src/CMakeFiles/zm.dir/zm_image.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
Merge pull request #418 from aztazt/patch-1

Update zm_jpeg.cpp to use correct values for libjpeg's boolean type
Fix wrong values used for type boolean